Skip to content

@sqlrooms/duckdb / loadObjects

Function: loadObjects()

loadObjects(tableName, data, options): string

Load JavaScript objects directly into a DuckDB table

Parameters

ParameterTypeDescription
tableNamestringName of the table to create
dataRecord<string, unknown>[]Array of objects to load
optionsobjectOutputTypeLoad options

Returns

string

SQL query string to create the table