Skip to content

@sqlrooms/duckdb / createTableFromQuery

Function: createTableFromQuery()

createTableFromQuery(tableName, query): Promise<{ tableName: string; rowCount: number; }>

Create a table from a query.

Parameters

ParameterTypeDescription
tableNamestringThe name of the table to create.
querystringThe query to create the table from.

Returns

Promise<{ tableName: string; rowCount: number; }>

The table that was created.