Skip to content

Commit

Permalink
fix insertCSVFromPath in README
Browse files Browse the repository at this point in the history
insertCSVFromPath() is a function of the connection and not the
database.
Error message:
TypeError: Cannot read properties of undefined (reading 'columns')
  • Loading branch information
candux authored and Mytherin committed Nov 17, 2023
1 parent d90f01c commit 8a04e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/duckdb-wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ await Promise.all(streamInserts);
// (interchangeable: registerFile{Text,Buffer,URL,Handle})
await db.registerFileText(`data.csv`, '1|foo\n2|bar\n');
// ... with typed insert options
await db.insertCSVFromPath('data.csv', {
await c.insertCSVFromPath('data.csv', {
schema: 'main',
name: 'foo',
detect: false,
Expand Down

0 comments on commit 8a04e21

Please sign in to comment.