@duckdb/node-bindings 1.1.2-alpha.1 → 1.1.2-alpha.3
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/README.md +8 -2
- package/duckdb.d.ts +12 -12
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# DuckDB Node Bindings
|
|
2
2
|
|
|
3
|
-
Node bindings to the DuckDB C API.
|
|
3
|
+
[Node](https://nodejs.org/) bindings to the [DuckDB C API](https://duckdb.org/docs/api/c/overview).
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
See [@duckdb/node-api](https://www.npmjs.com/package/@duckdb/node-api) for a high-level API built on these low-level bindings.
|
|
6
|
+
|
|
7
|
+
### Supported Platforms
|
|
8
|
+
|
|
9
|
+
- Linux x64
|
|
10
|
+
- Mac OS X (Darwin) arm64 (Apple Silicon)
|
|
11
|
+
- Windows (Win32) x64
|
package/duckdb.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export interface QueryProgress {
|
|
|
120
120
|
|
|
121
121
|
export interface Time {
|
|
122
122
|
/** Microseconds since 00:00:00 */
|
|
123
|
-
micros:
|
|
123
|
+
micros: bigint;
|
|
124
124
|
}
|
|
125
125
|
export interface TimeParts {
|
|
126
126
|
hour: number;
|
|
@@ -234,7 +234,7 @@ export function open(path?: string, config?: Config): Promise<Database>;
|
|
|
234
234
|
// not exposed: consolidated into open
|
|
235
235
|
|
|
236
236
|
// DUCKDB_API void duckdb_close(duckdb_database *database);
|
|
237
|
-
|
|
237
|
+
// not exposed: closed in finalizer
|
|
238
238
|
|
|
239
239
|
// DUCKDB_API duckdb_state duckdb_connect(duckdb_database database, duckdb_connection *out_connection);
|
|
240
240
|
export function connect(database: Database): Promise<Connection>;
|
|
@@ -246,7 +246,7 @@ export function interrupt(connection: Connection): void;
|
|
|
246
246
|
export function query_progress(connection: Connection): QueryProgress;
|
|
247
247
|
|
|
248
248
|
// DUCKDB_API void duckdb_disconnect(duckdb_connection *connection);
|
|
249
|
-
|
|
249
|
+
// not exposed: disconnected in finalizer
|
|
250
250
|
|
|
251
251
|
// DUCKDB_API const char *duckdb_library_version();
|
|
252
252
|
export function library_version(): string;
|
|
@@ -264,13 +264,13 @@ export function get_config_flag(index: number): ConfigFlag;
|
|
|
264
264
|
export function set_config(config: Config, name: string, option: string): void;
|
|
265
265
|
|
|
266
266
|
// DUCKDB_API void duckdb_destroy_config(duckdb_config *config);
|
|
267
|
-
|
|
267
|
+
// not exposed: destroyed in finalizer
|
|
268
268
|
|
|
269
269
|
// DUCKDB_API duckdb_state duckdb_query(duckdb_connection connection, const char *query, duckdb_result *out_result);
|
|
270
270
|
export function query(connection: Connection, query: string): Promise<Result>;
|
|
271
271
|
|
|
272
272
|
// DUCKDB_API void duckdb_destroy_result(duckdb_result *result);
|
|
273
|
-
|
|
273
|
+
// not exposed: destroyed in finalizer
|
|
274
274
|
|
|
275
275
|
// DUCKDB_API const char *duckdb_column_name(duckdb_result *result, idx_t col);
|
|
276
276
|
export function column_name(result: Result, column_index: number): string;
|
|
@@ -411,7 +411,7 @@ export function decimal_to_double(decimal: Decimal): number;
|
|
|
411
411
|
export function prepare(connection: Connection, query: string): Promise<PreparedStatement>;
|
|
412
412
|
|
|
413
413
|
// DUCKDB_API void duckdb_destroy_prepare(duckdb_prepared_statement *prepared_statement);
|
|
414
|
-
|
|
414
|
+
// not exposed: destroyed in finalizer
|
|
415
415
|
|
|
416
416
|
// DUCKDB_API const char *duckdb_prepare_error(duckdb_prepared_statement prepared_statement);
|
|
417
417
|
// not exposed: prepare rejects promise with error
|
|
@@ -523,7 +523,7 @@ export function prepare_extracted_statement(connection: Connection, extracted_st
|
|
|
523
523
|
export function extract_statements_error(extracted_statements: ExtractedStatements): string;
|
|
524
524
|
|
|
525
525
|
// DUCKDB_API void duckdb_destroy_extracted(duckdb_extracted_statements *extracted_statements);
|
|
526
|
-
|
|
526
|
+
// not exposed: destroyed in finalizer
|
|
527
527
|
|
|
528
528
|
// DUCKDB_API duckdb_state duckdb_pending_prepared(duckdb_prepared_statement prepared_statement, duckdb_pending_result *out_result);
|
|
529
529
|
export function pending_prepared(prepared_statement: PreparedStatement): PendingResult;
|
|
@@ -533,7 +533,7 @@ export function pending_prepared(prepared_statement: PreparedStatement): Pending
|
|
|
533
533
|
// #endif
|
|
534
534
|
|
|
535
535
|
// DUCKDB_API void duckdb_destroy_pending(duckdb_pending_result *pending_result);
|
|
536
|
-
|
|
536
|
+
// not exposed: destroyed in finalizer
|
|
537
537
|
|
|
538
538
|
// DUCKDB_API const char *duckdb_pending_error(duckdb_pending_result pending_result);
|
|
539
539
|
export function pending_error(pending_result: PendingResult): string;
|
|
@@ -551,7 +551,7 @@ export function execute_pending(pending_result: PendingResult): Promise<Result>;
|
|
|
551
551
|
export function pending_execution_is_finished(pending_state: PendingState): boolean;
|
|
552
552
|
|
|
553
553
|
// DUCKDB_API void duckdb_destroy_value(duckdb_value *value);
|
|
554
|
-
|
|
554
|
+
// not exposed: destroyed in finalizer
|
|
555
555
|
|
|
556
556
|
// DUCKDB_API duckdb_value duckdb_create_varchar(const char *text);
|
|
557
557
|
export function create_varchar(text: string): Value;
|
|
@@ -782,7 +782,7 @@ export function union_type_member_name(logical_type: LogicalType, index: number)
|
|
|
782
782
|
export function union_type_member_type(logical_type: LogicalType, index: number): LogicalType;
|
|
783
783
|
|
|
784
784
|
// DUCKDB_API void duckdb_destroy_logical_type(duckdb_logical_type *type);
|
|
785
|
-
|
|
785
|
+
// not exposed: destroyed in finalizer
|
|
786
786
|
|
|
787
787
|
// DUCKDB_API duckdb_state duckdb_register_logical_type(duckdb_connection con, duckdb_logical_type type, duckdb_create_type_info info);
|
|
788
788
|
// export function register_logical_type(connection: Connection, logical_type: LogicalType, info: CreateTypeInfo): void;
|
|
@@ -791,7 +791,7 @@ export function destroy_logical_type(logical_type: LogicalType): void;
|
|
|
791
791
|
export function create_data_chunk(logical_types: readonly LogicalType[]): DataChunk;
|
|
792
792
|
|
|
793
793
|
// DUCKDB_API void duckdb_destroy_data_chunk(duckdb_data_chunk *chunk);
|
|
794
|
-
|
|
794
|
+
// not exposed: destroyed in finalizer
|
|
795
795
|
|
|
796
796
|
// DUCKDB_API void duckdb_data_chunk_reset(duckdb_data_chunk chunk);
|
|
797
797
|
export function data_chunk_reset(chunk: DataChunk): void;
|
|
@@ -959,7 +959,7 @@ export function appender_flush(appender: Appender): void;
|
|
|
959
959
|
export function appender_close(appender: Appender): void;
|
|
960
960
|
|
|
961
961
|
// DUCKDB_API duckdb_state duckdb_appender_destroy(duckdb_appender *appender);
|
|
962
|
-
|
|
962
|
+
// not exposed: destroyed in finalizer
|
|
963
963
|
|
|
964
964
|
// DUCKDB_API duckdb_state duckdb_appender_begin_row(duckdb_appender appender);
|
|
965
965
|
// not exposed: no-op
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckdb/node-bindings",
|
|
3
|
-
"version": "1.1.2-alpha.
|
|
3
|
+
"version": "1.1.2-alpha.3",
|
|
4
4
|
"main": "./duckdb.js",
|
|
5
5
|
"types": "./duckdb.d.ts",
|
|
6
6
|
"optionalDependencies": {
|
|
7
|
-
"@duckdb/node-bindings-
|
|
8
|
-
"@duckdb/node-bindings-linux-x64": "1.1.2-alpha.
|
|
9
|
-
"@duckdb/node-bindings-
|
|
7
|
+
"@duckdb/node-bindings-win32-x64": "1.1.2-alpha.3",
|
|
8
|
+
"@duckdb/node-bindings-linux-x64": "1.1.2-alpha.3",
|
|
9
|
+
"@duckdb/node-bindings-darwin-arm64": "1.1.2-alpha.3"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|