⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for insertJSONFromPath (0.003 sec.)
Import Data 9414
Overview DuckDB-Wasm has multiple ways to import data, depending on the format of the data. Importing happens in two steps. The data file is registered in a virtual file system using one of the register functions ( registerFileBuffer , regi ... s loaded into DuckDB using one of the insert functions ( insertArrowFromIPCStream , insertArrowTable , insertCSVFromPath , insertJSONFromPath ), which are called on a connection ( conn ). Alternatively, the Parquet, JSON, or Wasm-flavored httpfs extensions can rea ... n', name: 'foo', detect: false, header: false, delimiter: '|', columns: { col1: new Int32(), col2: new Utf8(), }, }); JSON insertJSONFromPath() accepts both row-major and column-major JSON. Register the document first, then insert it: // Row-major format const jso ... oo" }, { "col1": 2, "col2": "bar" }, ]; await db.registerFileText('rows.json', JSON.stringify(jsonRowContent)); await conn.insertJSONFromPath('rows.json', { name: 'rows' }); // Column-major format const jsonColContent = { "col1": [1, 2], "col2": ["foo", "bar"] }; ...
https://man.mtool.work/duckdb/2.0/clients/wasm/data_ingestion.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work