⌘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 registerFileText (0.002 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 ... sterFileHandle , registerFileText , registerFileURL ). These are called on the database object ( db ), because a registered file is visible to every connect ... he CSV dialect and column types: import { Int32, Utf8 } from 'apache-arrow'; const csvContent = '1|foo\n2|bar\n'; await db.registerFileText('data.csv', csvContent); await conn.insertCSVFromPath('data.csv', { schema: 'main', name: 'foo', detect: false, header: fa ... t it: // Row-major format const jsonRowContent = [ { "col1": 1, "col2": "foo" }, { "col1": 2, "col2": "bar" }, ]; await db.registerFileText('rows.json', JSON.stringify(jsonRowContent)); await conn.insertJSONFromPath('rows.json', { name: 'rows' }); // Column-majo ...
https://man.mtool.work/duckdb/2.0/clients/wasm/data_ingestion.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work