Skip to content

@sqlrooms/duckdb / joinStatements

Function: joinStatements()

joinStatements(precedingStatements, lastStatement): string

Joins preceding statements with a (potentially modified) last statement into a single query.

Parameters

ParameterTypeDescription
precedingStatementsstring[]Statements to execute before the last one
lastStatementstringThe final statement (can be modified, e.g., wrapped in CREATE TABLE)

Returns

string

A single query string with all statements joined by semicolons