@duckdb/node-api
Advanced tools
Comparing version 1.1.3-alpha.5 to 1.1.3-alpha.6
@@ -15,4 +15,6 @@ "use strict"; | ||
static async create(path, options) { | ||
const config = node_bindings_1.default.create_config(); | ||
// Set the default duckdb_api value for the api. Can be overridden. | ||
node_bindings_1.default.set_config(config, 'duckdb_api', 'node-neo-api'); | ||
if (options) { | ||
const config = node_bindings_1.default.create_config(); | ||
for (const optionName in options) { | ||
@@ -22,7 +24,4 @@ const optionValue = String(options[optionName]); | ||
} | ||
return new DuckDBInstance(await node_bindings_1.default.open(path, config)); | ||
} | ||
else { | ||
return new DuckDBInstance(await node_bindings_1.default.open(path)); | ||
} | ||
return new DuckDBInstance(await node_bindings_1.default.open(path, config)); | ||
} | ||
@@ -29,0 +28,0 @@ async connect() { |
{ | ||
"name": "@duckdb/node-api", | ||
"version": "1.1.3-alpha.5", | ||
"version": "1.1.3-alpha.6", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"dependencies": { | ||
"@duckdb/node-bindings": "1.1.3-alpha.5" | ||
"@duckdb/node-bindings": "1.1.3-alpha.6" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
245908
5463
+ Added@duckdb/node-bindings@1.1.3-alpha.6(transitive)
+ Added@duckdb/node-bindings-darwin-arm64@1.1.3-alpha.6(transitive)
+ Added@duckdb/node-bindings-linux-x64@1.1.3-alpha.6(transitive)
+ Added@duckdb/node-bindings-win32-x64@1.1.3-alpha.6(transitive)
- Removed@duckdb/node-bindings@1.1.3-alpha.5(transitive)
- Removed@duckdb/node-bindings-darwin-arm64@1.1.3-alpha.5(transitive)
- Removed@duckdb/node-bindings-linux-x64@1.1.3-alpha.5(transitive)
- Removed@duckdb/node-bindings-win32-x64@1.1.3-alpha.5(transitive)