duckdb-web icon indicating copy to clipboard operation
duckdb-web copied to clipboard

WASM Client Add DuckDBQueryConfig example

Open bluehat974 opened this issue 2 years ago • 0 comments

https://duckdb.org/docs/archive/0.9.1/api/wasm/instantiation

Add example to explain the following options from DuckDBQueryConfig:

  • castBigIntToDouble
  • castDecimalToDouble
  • castDurationToTime64
  • castTimestampToDate
  • queryPollingInterval
await this._db.instantiate(bundle.mainModule, bundle.pthreadWorker)
    await this._db.open({
      path: ':memory:',
      query: {
        castBigIntToDouble: true,
        castDecimalToDouble: true,
        castDurationToTime64: true,
        castTimestampToDate: true,
        queryPollingInterval: 1000,
      },
    })

bluehat974 avatar Oct 16 '23 13:10 bluehat974