@duckdb/node-bindings 1.4.4-r.1 → 1.4.4-r.2
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 +17 -0
- package/package.json +6 -6
package/duckdb.d.ts
CHANGED
|
@@ -178,6 +178,10 @@ export interface TimestampParts {
|
|
|
178
178
|
time: TimeParts;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
export interface BindInfo {
|
|
182
|
+
__duckdb_type: 'duckdb_bind_info';
|
|
183
|
+
}
|
|
184
|
+
|
|
181
185
|
export interface FunctionInfo {
|
|
182
186
|
__duckdb_type: 'duckdb_function_info';
|
|
183
187
|
}
|
|
@@ -264,6 +268,7 @@ export interface ExtractedStatementsAndCount {
|
|
|
264
268
|
statement_count: number;
|
|
265
269
|
}
|
|
266
270
|
|
|
271
|
+
export type ScalarFunctionBindFunction = (info: BindInfo) => void;
|
|
267
272
|
export type ScalarFunctionMainFunction = (info: FunctionInfo, input: DataChunk, output: Vector) => void;
|
|
268
273
|
|
|
269
274
|
// Functions
|
|
@@ -1093,9 +1098,16 @@ export function scalar_function_set_return_type(scalar_function: ScalarFunction,
|
|
|
1093
1098
|
export function scalar_function_set_extra_info(scalar_function: ScalarFunction, extra_info: object): void;
|
|
1094
1099
|
|
|
1095
1100
|
// DUCKDB_C_API void duckdb_scalar_function_set_bind(duckdb_scalar_function scalar_function, duckdb_scalar_function_bind_t bind);
|
|
1101
|
+
export function scalar_function_set_bind(scalar_function: ScalarFunction, func: ScalarFunctionBindFunction): void;
|
|
1102
|
+
|
|
1096
1103
|
// DUCKDB_C_API void duckdb_scalar_function_set_bind_data(duckdb_bind_info info, void *bind_data, duckdb_delete_callback_t destroy);
|
|
1104
|
+
export function scalar_function_set_bind_data(info: BindInfo, bind_data: object): void;
|
|
1105
|
+
|
|
1097
1106
|
// DUCKDB_C_API void duckdb_scalar_function_set_bind_data_copy(duckdb_bind_info info, duckdb_copy_callback_t copy);
|
|
1107
|
+
// not exposed: handled by scalar_function_set_bind_data
|
|
1108
|
+
|
|
1098
1109
|
// DUCKDB_C_API void duckdb_scalar_function_bind_set_error(duckdb_bind_info info, const char *error);
|
|
1110
|
+
export function scalar_function_bind_set_error(bind_info: BindInfo, error: string): void;
|
|
1099
1111
|
|
|
1100
1112
|
// DUCKDB_C_API void duckdb_scalar_function_set_function(duckdb_scalar_function scalar_function, duckdb_scalar_function_t function);
|
|
1101
1113
|
export function scalar_function_set_function(scalar_function: ScalarFunction, func: ScalarFunctionMainFunction): void;
|
|
@@ -1107,8 +1119,13 @@ export function register_scalar_function(connection: Connection, scalar_function
|
|
|
1107
1119
|
export function scalar_function_get_extra_info(function_info: FunctionInfo): object | undefined;
|
|
1108
1120
|
|
|
1109
1121
|
// DUCKDB_C_API void *duckdb_scalar_function_bind_get_extra_info(duckdb_bind_info info);
|
|
1122
|
+
export function scalar_function_bind_get_extra_info(bind_info: BindInfo): object | undefined;
|
|
1123
|
+
|
|
1110
1124
|
// DUCKDB_C_API void *duckdb_scalar_function_get_bind_data(duckdb_function_info info);
|
|
1125
|
+
export function scalar_function_get_bind_data(function_info: FunctionInfo): object | undefined;
|
|
1126
|
+
|
|
1111
1127
|
// DUCKDB_C_API void duckdb_scalar_function_get_client_context(duckdb_bind_info info, duckdb_client_context *out_context);
|
|
1128
|
+
export function scalar_function_get_client_context(bind_info: BindInfo): ClientContext;
|
|
1112
1129
|
|
|
1113
1130
|
// DUCKDB_C_API void duckdb_scalar_function_set_error(duckdb_function_info info, const char *error);
|
|
1114
1131
|
export function scalar_function_set_error(function_info: FunctionInfo, error: string): void;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckdb/node-bindings",
|
|
3
|
-
"version": "1.4.4-r.
|
|
3
|
+
"version": "1.4.4-r.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./duckdb.js",
|
|
6
6
|
"types": "./duckdb.d.ts",
|
|
7
7
|
"optionalDependencies": {
|
|
8
|
-
"@duckdb/node-bindings-darwin-arm64": "1.4.4-r.
|
|
9
|
-
"@duckdb/node-bindings-
|
|
10
|
-
"@duckdb/node-bindings-
|
|
11
|
-
"@duckdb/node-bindings-
|
|
12
|
-
"@duckdb/node-bindings-
|
|
8
|
+
"@duckdb/node-bindings-darwin-arm64": "1.4.4-r.2",
|
|
9
|
+
"@duckdb/node-bindings-linux-arm64": "1.4.4-r.2",
|
|
10
|
+
"@duckdb/node-bindings-darwin-x64": "1.4.4-r.2",
|
|
11
|
+
"@duckdb/node-bindings-linux-x64": "1.4.4-r.2",
|
|
12
|
+
"@duckdb/node-bindings-win32-x64": "1.4.4-r.2"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|