@malloydata/db-duckdb 0.0.338 → 0.0.339

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.
@@ -83,8 +83,7 @@ class DuckDBConnection extends duckdb_common_1.DuckDBCommon {
83
83
  this.connecting = this.init();
84
84
  }
85
85
  getDigest() {
86
- var _a;
87
- return (0, malloy_1.makeDigest)('duckdb', this.databasePath, this.workingDirectory, (_a = this.setupSQL) !== null && _a !== void 0 ? _a : '');
86
+ return (0, malloy_1.makeDigest)('duckdb', this.databasePath, this.workingDirectory, this.setupSQL);
88
87
  }
89
88
  async init() {
90
89
  try {
@@ -285,8 +285,8 @@ class DuckDBWASMConnection extends duckdb_common_1.DuckDBCommon {
285
285
  this.connecting = this.init();
286
286
  }
287
287
  getDigest() {
288
- var _a, _b;
289
- return (0, malloy_1.makeDigest)('duckdb-wasm', (_a = this.databasePath) !== null && _a !== void 0 ? _a : ':memory:', this.workingDirectory, (_b = this.setupSQL) !== null && _b !== void 0 ? _b : '');
288
+ var _a;
289
+ return (0, malloy_1.makeDigest)('duckdb-wasm', (_a = this.databasePath) !== null && _a !== void 0 ? _a : ':memory:', this.workingDirectory, this.setupSQL);
290
290
  }
291
291
  async init() {
292
292
  // Select a bundle based on browser checks
package/dist/index.js CHANGED
@@ -35,6 +35,13 @@ const duckdb_connection_2 = require("./duckdb_connection");
35
35
  options['databasePath'] = options['path'];
36
36
  delete options['path'];
37
37
  }
38
+ // Parse comma-separated extensions string into array
39
+ if (typeof options['additionalExtensions'] === 'string') {
40
+ options['additionalExtensions'] = options['additionalExtensions']
41
+ .split(',')
42
+ .map(s => s.trim())
43
+ .filter(s => s.length > 0);
44
+ }
38
45
  return new duckdb_connection_2.DuckDBConnection(options);
39
46
  },
40
47
  properties: [
@@ -63,6 +70,8 @@ const duckdb_connection_2 = require("./duckdb_connection");
63
70
  displayName: 'Additional Extensions',
64
71
  type: 'string',
65
72
  optional: true,
73
+ description: 'Comma-separated list of DuckDB extensions to load (e.g. "spatial,fts"). ' +
74
+ 'These are loaded in addition to the built-in extensions: json, httpfs, icu.',
66
75
  },
67
76
  {
68
77
  name: 'readOnly',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-duckdb",
3
- "version": "0.0.338",
3
+ "version": "0.0.339",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@duckdb/duckdb-wasm": "1.33.1-dev13.0",
48
48
  "@duckdb/node-api": "1.4.3-r.1",
49
- "@malloydata/malloy": "0.0.338",
49
+ "@malloydata/malloy": "0.0.339",
50
50
  "@motherduck/wasm-client": "^0.6.6",
51
51
  "apache-arrow": "^17.0.0",
52
52
  "web-worker": "^1.3.0"