@sqlrooms/duckdb / loadObjects
Function: loadObjects()
loadObjects(
tableName
,data
,options
):string
Load JavaScript objects directly into a DuckDB table
Parameters
Parameter | Type | Description |
---|---|---|
tableName | string | Name of the table to create |
data | Record <string , unknown >[] | Array of objects to load |
options | objectOutputType | Load options |
Returns
string
SQL query string to create the table