@duckdb/node-bindings 1.2.0-alpha.15 → 1.2.1-alpha.16
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.
- package/duckdb.d.ts +9 -0
- package/package.json +6 -6
package/duckdb.d.ts
CHANGED
|
@@ -204,6 +204,10 @@ export interface ExtractedStatements {
|
|
|
204
204
|
__duckdb_type: 'duckdb_extracted_statements';
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
export interface InstanceCache {
|
|
208
|
+
__duckdb_type: 'duckdb_instance_cache';
|
|
209
|
+
}
|
|
210
|
+
|
|
207
211
|
export interface LogicalType {
|
|
208
212
|
__duckdb_type: 'duckdb_logical_type';
|
|
209
213
|
}
|
|
@@ -240,8 +244,13 @@ export interface ExtractedStatementsAndCount {
|
|
|
240
244
|
// Functions
|
|
241
245
|
|
|
242
246
|
// DUCKDB_API duckdb_instance_cache duckdb_create_instance_cache();
|
|
247
|
+
export function create_instance_cache(): InstanceCache;
|
|
248
|
+
|
|
243
249
|
// DUCKDB_API duckdb_state duckdb_get_or_create_from_cache(duckdb_instance_cache instance_cache, const char *path, duckdb_database *out_database, duckdb_config config, char **out_error);
|
|
250
|
+
export function get_or_create_from_cache(cache: InstanceCache, path?: string, config?: Config): Promise<Database>;
|
|
251
|
+
|
|
244
252
|
// DUCKDB_API void duckdb_destroy_instance_cache(duckdb_instance_cache *instance_cache);
|
|
253
|
+
// not exposed: destroyed in finalizer
|
|
245
254
|
|
|
246
255
|
// DUCKDB_API duckdb_state duckdb_open(const char *path, duckdb_database *out_database);
|
|
247
256
|
export function open(path?: string, config?: Config): Promise<Database>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckdb/node-bindings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1-alpha.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./duckdb.js",
|
|
6
6
|
"types": "./duckdb.d.ts",
|
|
7
7
|
"optionalDependencies": {
|
|
8
|
-
"@duckdb/node-bindings-darwin-
|
|
9
|
-
"@duckdb/node-bindings-darwin-
|
|
10
|
-
"@duckdb/node-bindings-linux-
|
|
11
|
-
"@duckdb/node-bindings-
|
|
12
|
-
"@duckdb/node-bindings-
|
|
8
|
+
"@duckdb/node-bindings-darwin-x64": "1.2.1-alpha.16",
|
|
9
|
+
"@duckdb/node-bindings-darwin-arm64": "1.2.1-alpha.16",
|
|
10
|
+
"@duckdb/node-bindings-linux-x64": "1.2.1-alpha.16",
|
|
11
|
+
"@duckdb/node-bindings-win32-x64": "1.2.1-alpha.16",
|
|
12
|
+
"@duckdb/node-bindings-linux-arm64": "1.2.1-alpha.16"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|