@malloydata/db-duckdb 0.0.34-dev230522233714 → 0.0.34-dev230523192251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,8 +67,23 @@ class DuckDBConnection extends duckdb_common_1.DuckDBCommon {
67
67
  if (this.workingDirectory) {
68
68
  await this.runDuckDBQuery(`SET FILE_SEARCH_PATH='${this.workingDirectory}'`);
69
69
  }
70
- for (const ext of ['json', 'httpfs', 'icu']) {
71
- await this.loadExtension(ext);
70
+ const setupCmds = [
71
+ "INSTALL 'json'",
72
+ "LOAD 'json'",
73
+ "INSTALL 'httpfs'",
74
+ "LOAD 'httpfs'",
75
+ "INSTALL 'icu'",
76
+ "LOAD 'icu'",
77
+ "SET TimeZone='UTC'",
78
+ ];
79
+ for (const cmd of setupCmds) {
80
+ try {
81
+ await this.runDuckDBQuery(cmd);
82
+ }
83
+ catch (error) {
84
+ // eslint-disable-next-line no-console
85
+ console.error(`duckdb setup ${cmd} => ${error}`);
86
+ }
72
87
  }
73
88
  };
74
89
  await this.connecting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-duckdb",
3
- "version": "0.0.34-dev230522233714",
3
+ "version": "0.0.34-dev230523192251",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@malloydata/duckdb-wasm": "0.0.1",
44
- "@malloydata/malloy": "^0.0.34-dev230522233714",
44
+ "@malloydata/malloy": "^0.0.34-dev230523192251",
45
45
  "apache-arrow": "^11.0.0",
46
46
  "duckdb": "0.7.1",
47
47
  "web-worker": "^1.2.0"