@duckdb/node-bindings 1.3.0-alpha.21 → 1.3.1-alpha.23
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 +461 -418
- package/package.json +6 -6
package/duckdb.d.ts
CHANGED
|
@@ -180,6 +180,10 @@ export interface Appender {
|
|
|
180
180
|
__duckdb_type: 'duckdb_appender';
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
// export interface ClientContext {
|
|
184
|
+
// __duckdb_type: 'duckdb_client_context';
|
|
185
|
+
// }
|
|
186
|
+
|
|
183
187
|
export interface Config {
|
|
184
188
|
__duckdb_type: 'duckdb_config';
|
|
185
189
|
}
|
|
@@ -224,6 +228,10 @@ export interface Result {
|
|
|
224
228
|
__duckdb_type: 'duckdb_result';
|
|
225
229
|
}
|
|
226
230
|
|
|
231
|
+
// export interface SelectionVector {
|
|
232
|
+
// __duckdb_type: 'duckdb_selection_vector';
|
|
233
|
+
// }
|
|
234
|
+
|
|
227
235
|
export interface Value {
|
|
228
236
|
__duckdb_type: 'duckdb_value';
|
|
229
237
|
}
|
|
@@ -243,984 +251,1019 @@ export interface ExtractedStatementsAndCount {
|
|
|
243
251
|
|
|
244
252
|
// Functions
|
|
245
253
|
|
|
246
|
-
//
|
|
254
|
+
// DUCKDB_C_API duckdb_instance_cache duckdb_create_instance_cache();
|
|
247
255
|
export function create_instance_cache(): InstanceCache;
|
|
248
256
|
|
|
249
|
-
//
|
|
257
|
+
// DUCKDB_C_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
258
|
export function get_or_create_from_cache(cache: InstanceCache, path?: string, config?: Config): Promise<Database>;
|
|
251
259
|
|
|
252
|
-
//
|
|
260
|
+
// DUCKDB_C_API void duckdb_destroy_instance_cache(duckdb_instance_cache *instance_cache);
|
|
253
261
|
// not exposed: destroyed in finalizer
|
|
254
262
|
|
|
255
|
-
//
|
|
263
|
+
// DUCKDB_C_API duckdb_state duckdb_open(const char *path, duckdb_database *out_database);
|
|
256
264
|
export function open(path?: string, config?: Config): Promise<Database>;
|
|
257
265
|
|
|
258
|
-
//
|
|
266
|
+
// DUCKDB_C_API duckdb_state duckdb_open_ext(const char *path, duckdb_database *out_database, duckdb_config config, char **out_error);
|
|
259
267
|
// not exposed: consolidated into open
|
|
260
268
|
|
|
261
|
-
//
|
|
269
|
+
// DUCKDB_C_API void duckdb_close(duckdb_database *database);
|
|
262
270
|
export function close_sync(database: Database): void;
|
|
263
271
|
|
|
264
|
-
//
|
|
272
|
+
// DUCKDB_C_API duckdb_state duckdb_connect(duckdb_database database, duckdb_connection *out_connection);
|
|
265
273
|
export function connect(database: Database): Promise<Connection>;
|
|
266
274
|
|
|
267
|
-
//
|
|
275
|
+
// DUCKDB_C_API void duckdb_interrupt(duckdb_connection connection);
|
|
268
276
|
export function interrupt(connection: Connection): void;
|
|
269
277
|
|
|
270
|
-
//
|
|
278
|
+
// DUCKDB_C_API duckdb_query_progress_type duckdb_query_progress(duckdb_connection connection);
|
|
271
279
|
export function query_progress(connection: Connection): QueryProgress;
|
|
272
280
|
|
|
273
|
-
//
|
|
281
|
+
// DUCKDB_C_API void duckdb_disconnect(duckdb_connection *connection);
|
|
274
282
|
export function disconnect_sync(connection: Connection): void;
|
|
275
283
|
|
|
276
|
-
//
|
|
284
|
+
// DUCKDB_C_API void duckdb_connection_get_client_context(duckdb_connection connection, duckdb_client_context *out_context);
|
|
285
|
+
|
|
286
|
+
// DUCKDB_C_API idx_t duckdb_client_context_get_connection_id(duckdb_client_context context);
|
|
287
|
+
|
|
288
|
+
// DUCKDB_C_API void duckdb_destroy_client_context(duckdb_client_context *context);
|
|
289
|
+
|
|
290
|
+
// DUCKDB_C_API const char *duckdb_library_version();
|
|
277
291
|
export function library_version(): string;
|
|
278
292
|
|
|
279
|
-
//
|
|
293
|
+
// DUCKDB_C_API duckdb_value duckdb_get_table_names(duckdb_connection connection, const char *query, bool qualified);
|
|
294
|
+
|
|
295
|
+
// DUCKDB_C_API duckdb_state duckdb_create_config(duckdb_config *out_config);
|
|
280
296
|
export function create_config(): Config;
|
|
281
297
|
|
|
282
|
-
//
|
|
298
|
+
// DUCKDB_C_API size_t duckdb_config_count();
|
|
283
299
|
export function config_count(): number;
|
|
284
300
|
|
|
285
|
-
//
|
|
301
|
+
// DUCKDB_C_API duckdb_state duckdb_get_config_flag(size_t index, const char **out_name, const char **out_description);
|
|
286
302
|
export function get_config_flag(index: number): ConfigFlag;
|
|
287
303
|
|
|
288
|
-
//
|
|
304
|
+
// DUCKDB_C_API duckdb_state duckdb_set_config(duckdb_config config, const char *name, const char *option);
|
|
289
305
|
export function set_config(config: Config, name: string, option: string): void;
|
|
290
306
|
|
|
291
|
-
//
|
|
307
|
+
// DUCKDB_C_API void duckdb_destroy_config(duckdb_config *config);
|
|
292
308
|
// not exposed: destroyed in finalizer
|
|
293
309
|
|
|
294
|
-
//
|
|
310
|
+
// DUCKDB_C_API duckdb_state duckdb_query(duckdb_connection connection, const char *query, duckdb_result *out_result);
|
|
295
311
|
export function query(connection: Connection, query: string): Promise<Result>;
|
|
296
312
|
|
|
297
|
-
//
|
|
313
|
+
// DUCKDB_C_API void duckdb_destroy_result(duckdb_result *result);
|
|
298
314
|
// not exposed: destroyed in finalizer
|
|
299
315
|
|
|
300
|
-
//
|
|
316
|
+
// DUCKDB_C_API const char *duckdb_column_name(duckdb_result *result, idx_t col);
|
|
301
317
|
export function column_name(result: Result, column_index: number): string;
|
|
302
318
|
|
|
303
|
-
//
|
|
319
|
+
// DUCKDB_C_API duckdb_type duckdb_column_type(duckdb_result *result, idx_t col);
|
|
304
320
|
export function column_type(result: Result, column_index: number): Type;
|
|
305
321
|
|
|
306
|
-
//
|
|
322
|
+
// DUCKDB_C_API duckdb_statement_type duckdb_result_statement_type(duckdb_result result);
|
|
307
323
|
export function result_statement_type(result: Result): StatementType;
|
|
308
324
|
|
|
309
|
-
//
|
|
325
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_column_logical_type(duckdb_result *result, idx_t col);
|
|
310
326
|
export function column_logical_type(result: Result, column_index: number): LogicalType;
|
|
311
327
|
|
|
312
|
-
//
|
|
328
|
+
// DUCKDB_C_API idx_t duckdb_column_count(duckdb_result *result);
|
|
313
329
|
export function column_count(result: Result): number;
|
|
314
330
|
|
|
315
331
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
316
332
|
|
|
317
|
-
//
|
|
333
|
+
// DUCKDB_C_API idx_t duckdb_row_count(duckdb_result *result);
|
|
318
334
|
export function row_count(result: Result): number;
|
|
319
335
|
|
|
320
336
|
// #endif
|
|
321
337
|
|
|
322
|
-
//
|
|
338
|
+
// DUCKDB_C_API idx_t duckdb_rows_changed(duckdb_result *result);
|
|
323
339
|
export function rows_changed(result: Result): number;
|
|
324
340
|
|
|
325
341
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
326
|
-
//
|
|
327
|
-
//
|
|
342
|
+
// DUCKDB_C_API void *duckdb_column_data(duckdb_result *result, idx_t col);
|
|
343
|
+
// DUCKDB_C_API bool *duckdb_nullmask_data(duckdb_result *result, idx_t col);
|
|
328
344
|
// #endif
|
|
329
345
|
|
|
330
|
-
//
|
|
346
|
+
// DUCKDB_C_API const char *duckdb_result_error(duckdb_result *result);
|
|
331
347
|
// not exposed: query, execute_prepared, and execute_pending reject promise with error
|
|
332
348
|
|
|
333
|
-
//
|
|
349
|
+
// DUCKDB_C_API duckdb_error_type duckdb_result_error_type(duckdb_result *result);
|
|
334
350
|
// not exposed: query, execute_prepared, and execute_pending reject promise with error
|
|
335
351
|
|
|
336
352
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
337
353
|
|
|
338
|
-
//
|
|
354
|
+
// DUCKDB_C_API duckdb_data_chunk duckdb_result_get_chunk(duckdb_result result, idx_t chunk_index);
|
|
339
355
|
export function result_get_chunk(result: Result, chunkIndex: number): DataChunk;
|
|
340
356
|
|
|
341
|
-
//
|
|
357
|
+
// DUCKDB_C_API bool duckdb_result_is_streaming(duckdb_result result);
|
|
342
358
|
export function result_is_streaming(result: Result): boolean;
|
|
343
359
|
|
|
344
|
-
//
|
|
360
|
+
// DUCKDB_C_API idx_t duckdb_result_chunk_count(duckdb_result result);
|
|
345
361
|
export function result_chunk_count(result: Result): number;
|
|
346
362
|
|
|
347
363
|
// #endif
|
|
348
364
|
|
|
349
|
-
//
|
|
365
|
+
// DUCKDB_C_API duckdb_result_type duckdb_result_return_type(duckdb_result result);
|
|
350
366
|
export function result_return_type(result: Result): ResultType;
|
|
351
367
|
|
|
352
368
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
353
|
-
//
|
|
354
|
-
//
|
|
355
|
-
//
|
|
356
|
-
//
|
|
357
|
-
//
|
|
358
|
-
//
|
|
359
|
-
//
|
|
360
|
-
//
|
|
361
|
-
//
|
|
362
|
-
//
|
|
363
|
-
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
//
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
//
|
|
369
|
+
// DUCKDB_C_API bool duckdb_value_boolean(duckdb_result *result, idx_t col, idx_t row);
|
|
370
|
+
// DUCKDB_C_API int8_t duckdb_value_int8(duckdb_result *result, idx_t col, idx_t row);
|
|
371
|
+
// DUCKDB_C_API int16_t duckdb_value_int16(duckdb_result *result, idx_t col, idx_t row);
|
|
372
|
+
// DUCKDB_C_API int32_t duckdb_value_int32(duckdb_result *result, idx_t col, idx_t row);
|
|
373
|
+
// DUCKDB_C_API int64_t duckdb_value_int64(duckdb_result *result, idx_t col, idx_t row);
|
|
374
|
+
// DUCKDB_C_API duckdb_hugeint duckdb_value_hugeint(duckdb_result *result, idx_t col, idx_t row);
|
|
375
|
+
// DUCKDB_C_API duckdb_uhugeint duckdb_value_uhugeint(duckdb_result *result, idx_t col, idx_t row);
|
|
376
|
+
// DUCKDB_C_API duckdb_decimal duckdb_value_decimal(duckdb_result *result, idx_t col, idx_t row);
|
|
377
|
+
// DUCKDB_C_API uint8_t duckdb_value_uint8(duckdb_result *result, idx_t col, idx_t row);
|
|
378
|
+
// DUCKDB_C_API uint16_t duckdb_value_uint16(duckdb_result *result, idx_t col, idx_t row);
|
|
379
|
+
// DUCKDB_C_API uint32_t duckdb_value_uint32(duckdb_result *result, idx_t col, idx_t row);
|
|
380
|
+
// DUCKDB_C_API uint64_t duckdb_value_uint64(duckdb_result *result, idx_t col, idx_t row);
|
|
381
|
+
// DUCKDB_C_API float duckdb_value_float(duckdb_result *result, idx_t col, idx_t row);
|
|
382
|
+
// DUCKDB_C_API double duckdb_value_double(duckdb_result *result, idx_t col, idx_t row);
|
|
383
|
+
// DUCKDB_C_API duckdb_date duckdb_value_date(duckdb_result *result, idx_t col, idx_t row);
|
|
384
|
+
// DUCKDB_C_API duckdb_time duckdb_value_time(duckdb_result *result, idx_t col, idx_t row);
|
|
385
|
+
// DUCKDB_C_API duckdb_timestamp duckdb_value_timestamp(duckdb_result *result, idx_t col, idx_t row);
|
|
386
|
+
// DUCKDB_C_API duckdb_interval duckdb_value_interval(duckdb_result *result, idx_t col, idx_t row);
|
|
387
|
+
// DUCKDB_C_API char *duckdb_value_varchar(duckdb_result *result, idx_t col, idx_t row);
|
|
388
|
+
// DUCKDB_C_API duckdb_string duckdb_value_string(duckdb_result *result, idx_t col, idx_t row);
|
|
389
|
+
// DUCKDB_C_API char *duckdb_value_varchar_internal(duckdb_result *result, idx_t col, idx_t row);
|
|
390
|
+
// DUCKDB_C_API duckdb_string duckdb_value_string_internal(duckdb_result *result, idx_t col, idx_t row);
|
|
391
|
+
// DUCKDB_C_API duckdb_blob duckdb_value_blob(duckdb_result *result, idx_t col, idx_t row);
|
|
392
|
+
// DUCKDB_C_API bool duckdb_value_is_null(duckdb_result *result, idx_t col, idx_t row);
|
|
377
393
|
// #endif
|
|
378
394
|
|
|
379
|
-
//
|
|
395
|
+
// DUCKDB_C_API void *duckdb_malloc(size_t size);
|
|
380
396
|
// not exposed: only used internally
|
|
381
397
|
|
|
382
|
-
//
|
|
398
|
+
// DUCKDB_C_API void duckdb_free(void *ptr);
|
|
383
399
|
// not exposed: only user internally
|
|
384
400
|
|
|
385
|
-
//
|
|
401
|
+
// DUCKDB_C_API idx_t duckdb_vector_size();
|
|
386
402
|
export function vector_size(): number;
|
|
387
403
|
|
|
388
|
-
//
|
|
404
|
+
// DUCKDB_C_API bool duckdb_string_is_inlined(duckdb_string_t string);
|
|
389
405
|
// not exposed: handled internally
|
|
390
406
|
|
|
391
|
-
//
|
|
407
|
+
// DUCKDB_C_API uint32_t duckdb_string_t_length(duckdb_string_t string);
|
|
392
408
|
// not exposed: handled internally
|
|
393
409
|
|
|
394
|
-
//
|
|
410
|
+
// DUCKDB_C_API const char *duckdb_string_t_data(duckdb_string_t *string);
|
|
395
411
|
// not exposed: handled internally
|
|
396
412
|
|
|
397
|
-
//
|
|
413
|
+
// DUCKDB_C_API duckdb_date_struct duckdb_from_date(duckdb_date date);
|
|
398
414
|
export function from_date(date: Date_): DateParts;
|
|
399
415
|
|
|
400
|
-
//
|
|
416
|
+
// DUCKDB_C_API duckdb_date duckdb_to_date(duckdb_date_struct date);
|
|
401
417
|
export function to_date(parts: DateParts): Date_;
|
|
402
418
|
|
|
403
|
-
//
|
|
419
|
+
// DUCKDB_C_API bool duckdb_is_finite_date(duckdb_date date);
|
|
404
420
|
export function is_finite_date(date: Date_): boolean;
|
|
405
421
|
|
|
406
|
-
//
|
|
422
|
+
// DUCKDB_C_API duckdb_time_struct duckdb_from_time(duckdb_time time);
|
|
407
423
|
export function from_time(time: Time): TimeParts;
|
|
408
424
|
|
|
409
|
-
//
|
|
425
|
+
// DUCKDB_C_API duckdb_time_tz duckdb_create_time_tz(int64_t micros, int32_t offset);
|
|
410
426
|
export function create_time_tz(micros: number, offset: number): TimeTZ;
|
|
411
427
|
|
|
412
|
-
//
|
|
428
|
+
// DUCKDB_C_API duckdb_time_tz_struct duckdb_from_time_tz(duckdb_time_tz micros);
|
|
413
429
|
export function from_time_tz(time_tz: TimeTZ): TimeTZParts;
|
|
414
430
|
|
|
415
|
-
//
|
|
431
|
+
// DUCKDB_C_API duckdb_time duckdb_to_time(duckdb_time_struct time);
|
|
416
432
|
export function to_time(parts: TimeParts): Time;
|
|
417
433
|
|
|
418
|
-
//
|
|
434
|
+
// DUCKDB_C_API duckdb_timestamp_struct duckdb_from_timestamp(duckdb_timestamp ts);
|
|
419
435
|
export function from_timestamp(timestamp: Timestamp): TimestampParts;
|
|
420
436
|
|
|
421
|
-
//
|
|
437
|
+
// DUCKDB_C_API duckdb_timestamp duckdb_to_timestamp(duckdb_timestamp_struct ts);
|
|
422
438
|
export function to_timestamp(parts: TimestampParts): Timestamp;
|
|
423
439
|
|
|
424
|
-
//
|
|
440
|
+
// DUCKDB_C_API bool duckdb_is_finite_timestamp(duckdb_timestamp ts);
|
|
425
441
|
export function is_finite_timestamp(timestamp: Timestamp): boolean;
|
|
426
442
|
|
|
427
|
-
//
|
|
443
|
+
// DUCKDB_C_API bool duckdb_is_finite_timestamp_s(duckdb_timestamp_s ts);
|
|
428
444
|
export function is_finite_timestamp_s(timestampSeconds: TimestampSeconds): boolean;
|
|
429
445
|
|
|
430
|
-
//
|
|
446
|
+
// DUCKDB_C_API bool duckdb_is_finite_timestamp_ms(duckdb_timestamp_ms ts);
|
|
431
447
|
export function is_finite_timestamp_ms(timestampMilliseconds: TimestampMilliseconds): boolean;
|
|
432
448
|
|
|
433
|
-
//
|
|
449
|
+
// DUCKDB_C_API bool duckdb_is_finite_timestamp_ns(duckdb_timestamp_ns ts);
|
|
434
450
|
export function is_finite_timestamp_ns(timestampNanoseconds: TimestampNanoseconds): boolean;
|
|
435
451
|
|
|
436
|
-
//
|
|
452
|
+
// DUCKDB_C_API double duckdb_hugeint_to_double(duckdb_hugeint val);
|
|
437
453
|
export function hugeint_to_double(hugeint: bigint): number;
|
|
438
454
|
|
|
439
|
-
//
|
|
455
|
+
// DUCKDB_C_API duckdb_hugeint duckdb_double_to_hugeint(double val);
|
|
440
456
|
export function double_to_hugeint(double: number): bigint;
|
|
441
457
|
|
|
442
|
-
//
|
|
458
|
+
// DUCKDB_C_API double duckdb_uhugeint_to_double(duckdb_uhugeint val);
|
|
443
459
|
export function uhugeint_to_double(uhugeint: bigint): number;
|
|
444
460
|
|
|
445
|
-
//
|
|
461
|
+
// DUCKDB_C_API duckdb_uhugeint duckdb_double_to_uhugeint(double val);
|
|
446
462
|
export function double_to_uhugeint(double: number): bigint;
|
|
447
463
|
|
|
448
|
-
//
|
|
464
|
+
// DUCKDB_C_API duckdb_decimal duckdb_double_to_decimal(double val, uint8_t width, uint8_t scale);
|
|
449
465
|
export function double_to_decimal(double: number, width: number, scale: number): Decimal;
|
|
450
466
|
|
|
451
|
-
//
|
|
467
|
+
// DUCKDB_C_API double duckdb_decimal_to_double(duckdb_decimal val);
|
|
452
468
|
export function decimal_to_double(decimal: Decimal): number;
|
|
453
469
|
|
|
454
|
-
//
|
|
470
|
+
// DUCKDB_C_API duckdb_state duckdb_prepare(duckdb_connection connection, const char *query, duckdb_prepared_statement *out_prepared_statement);
|
|
455
471
|
export function prepare(connection: Connection, query: string): Promise<PreparedStatement>;
|
|
456
472
|
|
|
457
|
-
//
|
|
473
|
+
// DUCKDB_C_API void duckdb_destroy_prepare(duckdb_prepared_statement *prepared_statement);
|
|
458
474
|
export function destroy_prepare_sync(prepared_statement: PreparedStatement): void;
|
|
459
475
|
|
|
460
|
-
//
|
|
476
|
+
// DUCKDB_C_API const char *duckdb_prepare_error(duckdb_prepared_statement prepared_statement);
|
|
461
477
|
// not exposed: prepare rejects promise with error
|
|
462
478
|
|
|
463
|
-
//
|
|
479
|
+
// DUCKDB_C_API idx_t duckdb_nparams(duckdb_prepared_statement prepared_statement);
|
|
464
480
|
export function nparams(prepared_statement: PreparedStatement): number;
|
|
465
481
|
|
|
466
|
-
//
|
|
482
|
+
// DUCKDB_C_API const char *duckdb_parameter_name(duckdb_prepared_statement prepared_statement, idx_t index);
|
|
467
483
|
export function parameter_name(prepared_statement: PreparedStatement, index: number): string;
|
|
468
484
|
|
|
469
|
-
//
|
|
485
|
+
// DUCKDB_C_API duckdb_type duckdb_param_type(duckdb_prepared_statement prepared_statement, idx_t param_idx);
|
|
470
486
|
export function param_type(prepared_statement: PreparedStatement, index: number): Type;
|
|
471
487
|
|
|
472
|
-
//
|
|
488
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_param_logical_type(duckdb_prepared_statement prepared_statement, idx_t param_idx);
|
|
473
489
|
export function param_logical_type(prepared_statement: PreparedStatement, index: number): LogicalType;
|
|
474
490
|
|
|
475
|
-
//
|
|
491
|
+
// DUCKDB_C_API duckdb_state duckdb_clear_bindings(duckdb_prepared_statement prepared_statement);
|
|
476
492
|
export function clear_bindings(prepared_statement: PreparedStatement): void;
|
|
477
493
|
|
|
478
|
-
//
|
|
494
|
+
// DUCKDB_C_API duckdb_statement_type duckdb_prepared_statement_type(duckdb_prepared_statement statement);
|
|
479
495
|
export function prepared_statement_type(prepared_statement: PreparedStatement): StatementType;
|
|
480
496
|
|
|
481
|
-
//
|
|
497
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_value(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_value val);
|
|
482
498
|
export function bind_value(prepared_statement: PreparedStatement, index: number, value: Value): void;
|
|
483
499
|
|
|
484
|
-
//
|
|
500
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_parameter_index(duckdb_prepared_statement prepared_statement, idx_t *param_idx_out, const char *name);
|
|
485
501
|
export function bind_parameter_index(prepared_statement: PreparedStatement, name: string): number;
|
|
486
502
|
|
|
487
|
-
//
|
|
503
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_boolean(duckdb_prepared_statement prepared_statement, idx_t param_idx, bool val);
|
|
488
504
|
export function bind_boolean(prepared_statement: PreparedStatement, index: number, bool: boolean): void;
|
|
489
505
|
|
|
490
|
-
//
|
|
506
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_int8(duckdb_prepared_statement prepared_statement, idx_t param_idx, int8_t val);
|
|
491
507
|
export function bind_int8(prepared_statement: PreparedStatement, index: number, int8: number): void;
|
|
492
508
|
|
|
493
|
-
//
|
|
509
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_int16(duckdb_prepared_statement prepared_statement, idx_t param_idx, int16_t val);
|
|
494
510
|
export function bind_int16(prepared_statement: PreparedStatement, index: number, int16: number): void;
|
|
495
511
|
|
|
496
|
-
//
|
|
512
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_int32(duckdb_prepared_statement prepared_statement, idx_t param_idx, int32_t val);
|
|
497
513
|
export function bind_int32(prepared_statement: PreparedStatement, index: number, int32: number): void;
|
|
498
514
|
|
|
499
|
-
//
|
|
515
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_int64(duckdb_prepared_statement prepared_statement, idx_t param_idx, int64_t val);
|
|
500
516
|
export function bind_int64(prepared_statement: PreparedStatement, index: number, int64: bigint): void;
|
|
501
517
|
|
|
502
|
-
//
|
|
518
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_hugeint(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_hugeint val);
|
|
503
519
|
export function bind_hugeint(prepared_statement: PreparedStatement, index: number, hugeint: bigint): void;
|
|
504
520
|
|
|
505
|
-
//
|
|
521
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_uhugeint(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_uhugeint val);
|
|
506
522
|
export function bind_uhugeint(prepared_statement: PreparedStatement, index: number, uhugeint: bigint): void;
|
|
507
523
|
|
|
508
|
-
//
|
|
524
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_decimal(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_decimal val);
|
|
509
525
|
export function bind_decimal(prepared_statement: PreparedStatement, index: number, decimal: Decimal): void;
|
|
510
526
|
|
|
511
|
-
//
|
|
527
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_uint8(duckdb_prepared_statement prepared_statement, idx_t param_idx, uint8_t val);
|
|
512
528
|
export function bind_uint8(prepared_statement: PreparedStatement, index: number, uint8: number): void;
|
|
513
529
|
|
|
514
|
-
//
|
|
530
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_uint16(duckdb_prepared_statement prepared_statement, idx_t param_idx, uint16_t val);
|
|
515
531
|
export function bind_uint16(prepared_statement: PreparedStatement, index: number, uint16: number): void;
|
|
516
532
|
|
|
517
|
-
//
|
|
533
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_uint32(duckdb_prepared_statement prepared_statement, idx_t param_idx, uint32_t val);
|
|
518
534
|
export function bind_uint32(prepared_statement: PreparedStatement, index: number, uint32: number): void;
|
|
519
535
|
|
|
520
|
-
//
|
|
536
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_uint64(duckdb_prepared_statement prepared_statement, idx_t param_idx, uint64_t val);
|
|
521
537
|
export function bind_uint64(prepared_statement: PreparedStatement, index: number, uint64: bigint): void;
|
|
522
538
|
|
|
523
|
-
//
|
|
539
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_float(duckdb_prepared_statement prepared_statement, idx_t param_idx, float val);
|
|
524
540
|
export function bind_float(prepared_statement: PreparedStatement, index: number, float: number): void;
|
|
525
541
|
|
|
526
|
-
//
|
|
542
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_double(duckdb_prepared_statement prepared_statement, idx_t param_idx, double val);
|
|
527
543
|
export function bind_double(prepared_statement: PreparedStatement, index: number, double: number): void;
|
|
528
544
|
|
|
529
|
-
//
|
|
545
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_date(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_date val);
|
|
530
546
|
export function bind_date(prepared_statement: PreparedStatement, index: number, date: Date_): void;
|
|
531
547
|
|
|
532
|
-
//
|
|
548
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_time(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_time val);
|
|
533
549
|
export function bind_time(prepared_statement: PreparedStatement, index: number, time: Time): void;
|
|
534
550
|
|
|
535
|
-
//
|
|
551
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_timestamp(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_timestamp val);
|
|
536
552
|
export function bind_timestamp(prepared_statement: PreparedStatement, index: number, timestamp: Timestamp): void;
|
|
537
553
|
|
|
538
|
-
//
|
|
554
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_timestamp_tz(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_timestamp val);
|
|
539
555
|
export function bind_timestamp_tz(prepared_statement: PreparedStatement, index: number, timestamp: Timestamp): void;
|
|
540
556
|
|
|
541
|
-
//
|
|
557
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_interval(duckdb_prepared_statement prepared_statement, idx_t param_idx, duckdb_interval val);
|
|
542
558
|
export function bind_interval(prepared_statement: PreparedStatement, index: number, interval: Interval): void;
|
|
543
559
|
|
|
544
|
-
//
|
|
560
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_varchar(duckdb_prepared_statement prepared_statement, idx_t param_idx, const char *val);
|
|
545
561
|
export function bind_varchar(prepared_statement: PreparedStatement, index: number, varchar: string): void;
|
|
546
562
|
|
|
547
|
-
//
|
|
563
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_varchar_length(duckdb_prepared_statement prepared_statement, idx_t param_idx, const char *val, idx_t length);
|
|
548
564
|
// not exposed: JS string includes length
|
|
549
565
|
|
|
550
|
-
//
|
|
566
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_blob(duckdb_prepared_statement prepared_statement, idx_t param_idx, const void *data, idx_t length);
|
|
551
567
|
export function bind_blob(prepared_statement: PreparedStatement, index: number, data: Uint8Array): void;
|
|
552
568
|
|
|
553
|
-
//
|
|
569
|
+
// DUCKDB_C_API duckdb_state duckdb_bind_null(duckdb_prepared_statement prepared_statement, idx_t param_idx);
|
|
554
570
|
export function bind_null(prepared_statement: PreparedStatement, index: number): void;
|
|
555
571
|
|
|
556
|
-
//
|
|
572
|
+
// DUCKDB_C_API duckdb_state duckdb_execute_prepared(duckdb_prepared_statement prepared_statement, duckdb_result *out_result);
|
|
557
573
|
export function execute_prepared(prepared_statement: PreparedStatement): Promise<Result>;
|
|
558
574
|
|
|
559
575
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
560
576
|
|
|
561
|
-
//
|
|
577
|
+
// DUCKDB_C_API duckdb_state duckdb_execute_prepared_streaming(duckdb_prepared_statement prepared_statement, duckdb_result *out_result);
|
|
562
578
|
export function execute_prepared_streaming(prepared_statement: PreparedStatement): Promise<Result>;
|
|
563
579
|
|
|
564
580
|
// #endif
|
|
565
581
|
|
|
566
|
-
//
|
|
582
|
+
// DUCKDB_C_API idx_t duckdb_extract_statements(duckdb_connection connection, const char *query, duckdb_extracted_statements *out_extracted_statements);
|
|
567
583
|
export function extract_statements(connection: Connection, query: string): Promise<ExtractedStatementsAndCount>;
|
|
568
584
|
|
|
569
|
-
//
|
|
585
|
+
// DUCKDB_C_API duckdb_state duckdb_prepare_extracted_statement(duckdb_connection connection, duckdb_extracted_statements extracted_statements, idx_t index, duckdb_prepared_statement *out_prepared_statement);
|
|
570
586
|
export function prepare_extracted_statement(connection: Connection, extracted_statements: ExtractedStatements, index: number): Promise<PreparedStatement>;
|
|
571
587
|
|
|
572
|
-
//
|
|
588
|
+
// DUCKDB_C_API const char *duckdb_extract_statements_error(duckdb_extracted_statements extracted_statements);
|
|
573
589
|
export function extract_statements_error(extracted_statements: ExtractedStatements): string;
|
|
574
590
|
|
|
575
|
-
//
|
|
591
|
+
// DUCKDB_C_API void duckdb_destroy_extracted(duckdb_extracted_statements *extracted_statements);
|
|
576
592
|
// not exposed: destroyed in finalizer
|
|
577
593
|
|
|
578
|
-
//
|
|
594
|
+
// DUCKDB_C_API duckdb_state duckdb_pending_prepared(duckdb_prepared_statement prepared_statement, duckdb_pending_result *out_result);
|
|
579
595
|
export function pending_prepared(prepared_statement: PreparedStatement): PendingResult;
|
|
580
596
|
|
|
581
597
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
582
598
|
|
|
583
|
-
//
|
|
599
|
+
// DUCKDB_C_API duckdb_state duckdb_pending_prepared_streaming(duckdb_prepared_statement prepared_statement, duckdb_pending_result *out_result);
|
|
584
600
|
export function pending_prepared_streaming(prepared_statement: PreparedStatement): PendingResult;
|
|
585
601
|
|
|
586
602
|
// #endif
|
|
587
603
|
|
|
588
|
-
//
|
|
604
|
+
// DUCKDB_C_API void duckdb_destroy_pending(duckdb_pending_result *pending_result);
|
|
589
605
|
// not exposed: destroyed in finalizer
|
|
590
606
|
|
|
591
|
-
//
|
|
607
|
+
// DUCKDB_C_API const char *duckdb_pending_error(duckdb_pending_result pending_result);
|
|
592
608
|
export function pending_error(pending_result: PendingResult): string;
|
|
593
609
|
|
|
594
|
-
//
|
|
610
|
+
// DUCKDB_C_API duckdb_pending_state duckdb_pending_execute_task(duckdb_pending_result pending_result);
|
|
595
611
|
export function pending_execute_task(pending_result: PendingResult): PendingState;
|
|
596
612
|
|
|
597
|
-
//
|
|
613
|
+
// DUCKDB_C_API duckdb_pending_state duckdb_pending_execute_check_state(duckdb_pending_result pending_result);
|
|
598
614
|
export function pending_execute_check_state(pending_resulit: PendingResult): PendingState;
|
|
599
615
|
|
|
600
|
-
//
|
|
616
|
+
// DUCKDB_C_API duckdb_state duckdb_execute_pending(duckdb_pending_result pending_result, duckdb_result *out_result);
|
|
601
617
|
export function execute_pending(pending_result: PendingResult): Promise<Result>;
|
|
602
618
|
|
|
603
|
-
//
|
|
619
|
+
// DUCKDB_C_API bool duckdb_pending_execution_is_finished(duckdb_pending_state pending_state);
|
|
604
620
|
export function pending_execution_is_finished(pending_state: PendingState): boolean;
|
|
605
621
|
|
|
606
|
-
//
|
|
622
|
+
// DUCKDB_C_API void duckdb_destroy_value(duckdb_value *value);
|
|
607
623
|
// not exposed: destroyed in finalizer
|
|
608
624
|
|
|
609
|
-
//
|
|
625
|
+
// DUCKDB_C_API duckdb_value duckdb_create_varchar(const char *text);
|
|
610
626
|
export function create_varchar(text: string): Value;
|
|
611
627
|
|
|
612
|
-
//
|
|
628
|
+
// DUCKDB_C_API duckdb_value duckdb_create_varchar_length(const char *text, idx_t length);
|
|
613
629
|
// not exposed: JS string includes length
|
|
614
630
|
|
|
615
|
-
//
|
|
631
|
+
// DUCKDB_C_API duckdb_value duckdb_create_bool(bool input);
|
|
616
632
|
export function create_bool(input: boolean): Value;
|
|
617
633
|
|
|
618
|
-
//
|
|
634
|
+
// DUCKDB_C_API duckdb_value duckdb_create_int8(int8_t input);
|
|
619
635
|
export function create_int8(input: number): Value;
|
|
620
636
|
|
|
621
|
-
//
|
|
637
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uint8(uint8_t input);
|
|
622
638
|
export function create_uint8(input: number): Value;
|
|
623
639
|
|
|
624
|
-
//
|
|
640
|
+
// DUCKDB_C_API duckdb_value duckdb_create_int16(int16_t input);
|
|
625
641
|
export function create_int16(input: number): Value;
|
|
626
642
|
|
|
627
|
-
//
|
|
643
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uint16(uint16_t input);
|
|
628
644
|
export function create_uint16(input: number): Value;
|
|
629
645
|
|
|
630
|
-
//
|
|
646
|
+
// DUCKDB_C_API duckdb_value duckdb_create_int32(int32_t input);
|
|
631
647
|
export function create_int32(input: number): Value;
|
|
632
648
|
|
|
633
|
-
//
|
|
649
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uint32(uint32_t input);
|
|
634
650
|
export function create_uint32(input: number): Value;
|
|
635
651
|
|
|
636
|
-
//
|
|
652
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uint64(uint64_t input);
|
|
637
653
|
export function create_uint64(input: bigint): Value;
|
|
638
654
|
|
|
639
|
-
//
|
|
655
|
+
// DUCKDB_C_API duckdb_value duckdb_create_int64(int64_t val);
|
|
640
656
|
export function create_int64(input: bigint): Value;
|
|
641
657
|
|
|
642
|
-
//
|
|
658
|
+
// DUCKDB_C_API duckdb_value duckdb_create_hugeint(duckdb_hugeint input);
|
|
643
659
|
export function create_hugeint(input: bigint): Value;
|
|
644
660
|
|
|
645
|
-
//
|
|
661
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uhugeint(duckdb_uhugeint input);
|
|
646
662
|
export function create_uhugeint(input: bigint): Value;
|
|
647
663
|
|
|
648
|
-
//
|
|
664
|
+
// DUCKDB_C_API duckdb_value duckdb_create_varint(duckdb_varint input);
|
|
649
665
|
export function create_varint(input: bigint): Value;
|
|
650
666
|
|
|
651
|
-
//
|
|
667
|
+
// DUCKDB_C_API duckdb_value duckdb_create_decimal(duckdb_decimal input);
|
|
652
668
|
export function create_decimal(input: Decimal): Value;
|
|
653
669
|
|
|
654
|
-
//
|
|
670
|
+
// DUCKDB_C_API duckdb_value duckdb_create_float(float input);
|
|
655
671
|
export function create_float(input: number): Value;
|
|
656
672
|
|
|
657
|
-
//
|
|
673
|
+
// DUCKDB_C_API duckdb_value duckdb_create_double(double input);
|
|
658
674
|
export function create_double(input: number): Value;
|
|
659
675
|
|
|
660
|
-
//
|
|
676
|
+
// DUCKDB_C_API duckdb_value duckdb_create_date(duckdb_date input);
|
|
661
677
|
export function create_date(input: Date_): Value;
|
|
662
678
|
|
|
663
|
-
//
|
|
679
|
+
// DUCKDB_C_API duckdb_value duckdb_create_time(duckdb_time input);
|
|
664
680
|
export function create_time(input: Time): Value;
|
|
665
681
|
|
|
666
|
-
//
|
|
682
|
+
// DUCKDB_C_API duckdb_value duckdb_create_time_tz_value(duckdb_time_tz value);
|
|
667
683
|
export function create_time_tz_value(input: TimeTZ): Value;
|
|
668
684
|
|
|
669
|
-
//
|
|
685
|
+
// DUCKDB_C_API duckdb_value duckdb_create_timestamp(duckdb_timestamp input);
|
|
670
686
|
export function create_timestamp(input: Timestamp): Value;
|
|
671
687
|
|
|
672
|
-
//
|
|
688
|
+
// DUCKDB_C_API duckdb_value duckdb_create_timestamp_tz(duckdb_timestamp input);
|
|
673
689
|
export function create_timestamp_tz(input: Timestamp): Value;
|
|
674
690
|
|
|
675
|
-
//
|
|
691
|
+
// DUCKDB_C_API duckdb_value duckdb_create_timestamp_s(duckdb_timestamp_s input);
|
|
676
692
|
export function create_timestamp_s(input: TimestampSeconds): Value;
|
|
677
693
|
|
|
678
|
-
//
|
|
694
|
+
// DUCKDB_C_API duckdb_value duckdb_create_timestamp_ms(duckdb_timestamp_ms input);
|
|
679
695
|
export function create_timestamp_ms(input: TimestampMilliseconds): Value;
|
|
680
696
|
|
|
681
|
-
//
|
|
697
|
+
// DUCKDB_C_API duckdb_value duckdb_create_timestamp_ns(duckdb_timestamp_ns input);
|
|
682
698
|
export function create_timestamp_ns(input: TimestampNanoseconds): Value;
|
|
683
699
|
|
|
684
|
-
//
|
|
700
|
+
// DUCKDB_C_API duckdb_value duckdb_create_interval(duckdb_interval input);
|
|
685
701
|
export function create_interval(input: Interval): Value;
|
|
686
702
|
|
|
687
|
-
//
|
|
703
|
+
// DUCKDB_C_API duckdb_value duckdb_create_blob(const uint8_t *data, idx_t length);
|
|
688
704
|
export function create_blob(data: Uint8Array): Value;
|
|
689
705
|
|
|
690
|
-
//
|
|
706
|
+
// DUCKDB_C_API duckdb_value duckdb_create_bit(duckdb_bit input);
|
|
691
707
|
export function create_bit(data: Uint8Array): Value;
|
|
692
708
|
|
|
693
|
-
//
|
|
709
|
+
// DUCKDB_C_API duckdb_value duckdb_create_uuid(duckdb_uhugeint input);
|
|
694
710
|
export function create_uuid(input: bigint): Value;
|
|
695
711
|
|
|
696
|
-
//
|
|
712
|
+
// DUCKDB_C_API bool duckdb_get_bool(duckdb_value val);
|
|
697
713
|
export function get_bool(value: Value): boolean;
|
|
698
714
|
|
|
699
|
-
//
|
|
715
|
+
// DUCKDB_C_API int8_t duckdb_get_int8(duckdb_value val);
|
|
700
716
|
export function get_int8(value: Value): number;
|
|
701
717
|
|
|
702
|
-
//
|
|
718
|
+
// DUCKDB_C_API uint8_t duckdb_get_uint8(duckdb_value val);
|
|
703
719
|
export function get_uint8(value: Value): number;
|
|
704
720
|
|
|
705
|
-
//
|
|
721
|
+
// DUCKDB_C_API int16_t duckdb_get_int16(duckdb_value val);
|
|
706
722
|
export function get_int16(value: Value): number;
|
|
707
723
|
|
|
708
|
-
//
|
|
724
|
+
// DUCKDB_C_API uint16_t duckdb_get_uint16(duckdb_value val);
|
|
709
725
|
export function get_uint16(value: Value): number;
|
|
710
726
|
|
|
711
|
-
//
|
|
727
|
+
// DUCKDB_C_API int32_t duckdb_get_int32(duckdb_value val);
|
|
712
728
|
export function get_int32(value: Value): number;
|
|
713
729
|
|
|
714
|
-
//
|
|
730
|
+
// DUCKDB_C_API uint32_t duckdb_get_uint32(duckdb_value val);
|
|
715
731
|
export function get_uint32(value: Value): number;
|
|
716
732
|
|
|
717
|
-
//
|
|
733
|
+
// DUCKDB_C_API int64_t duckdb_get_int64(duckdb_value val);
|
|
718
734
|
export function get_int64(value: Value): bigint;
|
|
719
735
|
|
|
720
|
-
//
|
|
736
|
+
// DUCKDB_C_API uint64_t duckdb_get_uint64(duckdb_value val);
|
|
721
737
|
export function get_uint64(value: Value): bigint;
|
|
722
738
|
|
|
723
|
-
//
|
|
739
|
+
// DUCKDB_C_API duckdb_hugeint duckdb_get_hugeint(duckdb_value val);
|
|
724
740
|
export function get_hugeint(value: Value): bigint;
|
|
725
741
|
|
|
726
|
-
//
|
|
742
|
+
// DUCKDB_C_API duckdb_uhugeint duckdb_get_uhugeint(duckdb_value val);
|
|
727
743
|
export function get_uhugeint(value: Value): bigint;
|
|
728
744
|
|
|
729
|
-
//
|
|
745
|
+
// DUCKDB_C_API duckdb_varint duckdb_get_varint(duckdb_value val);
|
|
730
746
|
export function get_varint(value: Value): bigint;
|
|
731
747
|
|
|
732
|
-
//
|
|
748
|
+
// DUCKDB_C_API duckdb_decimal duckdb_get_decimal(duckdb_value val);
|
|
733
749
|
export function get_decimal(value: Value): Decimal;
|
|
734
750
|
|
|
735
|
-
//
|
|
751
|
+
// DUCKDB_C_API float duckdb_get_float(duckdb_value val);
|
|
736
752
|
export function get_float(value: Value): number;
|
|
737
753
|
|
|
738
|
-
//
|
|
754
|
+
// DUCKDB_C_API double duckdb_get_double(duckdb_value val);
|
|
739
755
|
export function get_double(value: Value): number;
|
|
740
756
|
|
|
741
|
-
//
|
|
757
|
+
// DUCKDB_C_API duckdb_date duckdb_get_date(duckdb_value val);
|
|
742
758
|
export function get_date(value: Value): Date_;
|
|
743
759
|
|
|
744
|
-
//
|
|
760
|
+
// DUCKDB_C_API duckdb_time duckdb_get_time(duckdb_value val);
|
|
745
761
|
export function get_time(value: Value): Time;
|
|
746
762
|
|
|
747
|
-
//
|
|
763
|
+
// DUCKDB_C_API duckdb_time_tz duckdb_get_time_tz(duckdb_value val);
|
|
748
764
|
export function get_time_tz(value: Value): TimeTZ;
|
|
749
765
|
|
|
750
|
-
//
|
|
766
|
+
// DUCKDB_C_API duckdb_timestamp duckdb_get_timestamp(duckdb_value val);
|
|
751
767
|
export function get_timestamp(value: Value): Timestamp;
|
|
752
768
|
|
|
753
|
-
//
|
|
769
|
+
// DUCKDB_C_API duckdb_timestamp duckdb_get_timestamp_tz(duckdb_value val);
|
|
754
770
|
export function get_timestamp_tz(value: Value): Timestamp;
|
|
755
771
|
|
|
756
|
-
//
|
|
772
|
+
// DUCKDB_C_API duckdb_timestamp_s duckdb_get_timestamp_s(duckdb_value val);
|
|
757
773
|
export function get_timestamp_s(value: Value): TimestampSeconds;
|
|
758
774
|
|
|
759
|
-
//
|
|
775
|
+
// DUCKDB_C_API duckdb_timestamp_ms duckdb_get_timestamp_ms(duckdb_value val);
|
|
760
776
|
export function get_timestamp_ms(value: Value): TimestampMilliseconds;
|
|
761
777
|
|
|
762
|
-
//
|
|
778
|
+
// DUCKDB_C_API duckdb_timestamp_ns duckdb_get_timestamp_ns(duckdb_value val);
|
|
763
779
|
export function get_timestamp_ns(value: Value): TimestampNanoseconds;
|
|
764
780
|
|
|
765
|
-
//
|
|
781
|
+
// DUCKDB_C_API duckdb_interval duckdb_get_interval(duckdb_value val);
|
|
766
782
|
export function get_interval(value: Value): Interval;
|
|
767
783
|
|
|
768
|
-
//
|
|
784
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_get_value_type(duckdb_value val);
|
|
769
785
|
export function get_value_type(value: Value): LogicalType;
|
|
770
786
|
|
|
771
|
-
//
|
|
787
|
+
// DUCKDB_C_API duckdb_blob duckdb_get_blob(duckdb_value val);
|
|
772
788
|
export function get_blob(value: Value): Uint8Array;
|
|
773
789
|
|
|
774
|
-
//
|
|
790
|
+
// DUCKDB_C_API duckdb_bit duckdb_get_bit(duckdb_value val);
|
|
775
791
|
export function get_bit(value: Value): Uint8Array;
|
|
776
792
|
|
|
777
|
-
//
|
|
793
|
+
// DUCKDB_C_API duckdb_uhugeint duckdb_get_uuid(duckdb_value val);
|
|
778
794
|
export function get_uuid(value: Value): bigint;
|
|
779
795
|
|
|
780
|
-
//
|
|
796
|
+
// DUCKDB_C_API char *duckdb_get_varchar(duckdb_value value);
|
|
781
797
|
export function get_varchar(value: Value): string;
|
|
782
798
|
|
|
783
|
-
//
|
|
799
|
+
// DUCKDB_C_API duckdb_value duckdb_create_struct_value(duckdb_logical_type type, duckdb_value *values);
|
|
784
800
|
export function create_struct_value(logical_type: LogicalType, values: readonly Value[]): Value;
|
|
785
801
|
|
|
786
|
-
//
|
|
802
|
+
// DUCKDB_C_API duckdb_value duckdb_create_list_value(duckdb_logical_type type, duckdb_value *values, idx_t value_count);
|
|
787
803
|
export function create_list_value(logical_type: LogicalType, values: readonly Value[]): Value;
|
|
788
804
|
|
|
789
|
-
//
|
|
805
|
+
// DUCKDB_C_API duckdb_value duckdb_create_array_value(duckdb_logical_type type, duckdb_value *values, idx_t value_count);
|
|
790
806
|
export function create_array_value(logical_type: LogicalType, values: readonly Value[]): Value;
|
|
791
807
|
|
|
792
|
-
//
|
|
808
|
+
// DUCKDB_C_API duckdb_value duckdb_create_map_value(duckdb_logical_type map_type, duckdb_value *keys, duckdb_value *values, idx_t entry_count);
|
|
809
|
+
export function create_map_value(map_type: LogicalType, keys: readonly Value[], values: readonly Value[]): Value;
|
|
810
|
+
|
|
811
|
+
// DUCKDB_C_API duckdb_value duckdb_create_union_value(duckdb_logical_type union_type, idx_t tag_index, duckdb_value value);
|
|
812
|
+
export function create_union_value(union_type: LogicalType, tag_index: number, value: Value): Value;
|
|
813
|
+
|
|
814
|
+
// DUCKDB_C_API idx_t duckdb_get_map_size(duckdb_value value);
|
|
793
815
|
export function get_map_size(value: Value): number;
|
|
794
816
|
|
|
795
|
-
//
|
|
817
|
+
// DUCKDB_C_API duckdb_value duckdb_get_map_key(duckdb_value value, idx_t index);
|
|
796
818
|
export function get_map_key(value: Value, index: number): Value;
|
|
797
819
|
|
|
798
|
-
//
|
|
820
|
+
// DUCKDB_C_API duckdb_value duckdb_get_map_value(duckdb_value value, idx_t index);
|
|
799
821
|
export function get_map_value(value: Value, index: number): Value;
|
|
800
822
|
|
|
801
|
-
//
|
|
823
|
+
// DUCKDB_C_API bool duckdb_is_null_value(duckdb_value value);
|
|
802
824
|
export function is_null_value(value: Value): boolean;
|
|
803
825
|
|
|
804
|
-
//
|
|
826
|
+
// DUCKDB_C_API duckdb_value duckdb_create_null_value();
|
|
805
827
|
export function create_null_value(): Value;
|
|
806
828
|
|
|
807
|
-
//
|
|
829
|
+
// DUCKDB_C_API idx_t duckdb_get_list_size(duckdb_value value);
|
|
808
830
|
export function get_list_size(value: Value): number;
|
|
809
831
|
|
|
810
|
-
//
|
|
832
|
+
// DUCKDB_C_API duckdb_value duckdb_get_list_child(duckdb_value value, idx_t index);
|
|
811
833
|
export function get_list_child(value: Value, index: number): Value;
|
|
812
834
|
|
|
813
|
-
//
|
|
835
|
+
// DUCKDB_C_API duckdb_value duckdb_create_enum_value(duckdb_logical_type type, uint64_t value);
|
|
814
836
|
export function create_enum_value(logical_type: LogicalType, value: number): Value;
|
|
815
837
|
|
|
816
|
-
//
|
|
838
|
+
// DUCKDB_C_API uint64_t duckdb_get_enum_value(duckdb_value value);
|
|
817
839
|
export function get_enum_value(value: Value): number;
|
|
818
840
|
|
|
819
|
-
//
|
|
841
|
+
// DUCKDB_C_API duckdb_value duckdb_get_struct_child(duckdb_value value, idx_t index);
|
|
820
842
|
export function get_struct_child(value: Value, index: number): Value;
|
|
821
843
|
|
|
822
|
-
//
|
|
844
|
+
// DUCKDB_C_API char *duckdb_value_to_string(duckdb_value value);
|
|
845
|
+
|
|
846
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_logical_type(duckdb_type type);
|
|
823
847
|
export function create_logical_type(type: Type): LogicalType;
|
|
824
848
|
|
|
825
|
-
//
|
|
849
|
+
// DUCKDB_C_API char *duckdb_logical_type_get_alias(duckdb_logical_type type);
|
|
826
850
|
export function logical_type_get_alias(logical_type: LogicalType): string | null;
|
|
827
851
|
|
|
828
|
-
//
|
|
852
|
+
// DUCKDB_C_API void duckdb_logical_type_set_alias(duckdb_logical_type type, const char *alias);
|
|
829
853
|
export function logical_type_set_alias(logical_type: LogicalType, alias: string): void;
|
|
830
854
|
|
|
831
|
-
//
|
|
855
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_list_type(duckdb_logical_type type);
|
|
832
856
|
export function create_list_type(logical_type: LogicalType): LogicalType;
|
|
833
857
|
|
|
834
|
-
//
|
|
858
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_array_type(duckdb_logical_type type, idx_t array_size);
|
|
835
859
|
export function create_array_type(logical_type: LogicalType, array_size: number): LogicalType;
|
|
836
860
|
|
|
837
|
-
//
|
|
861
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_map_type(duckdb_logical_type key_type, duckdb_logical_type value_type);
|
|
838
862
|
export function create_map_type(key_type: LogicalType, value_type: LogicalType): LogicalType;
|
|
839
863
|
|
|
840
|
-
//
|
|
864
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_union_type(duckdb_logical_type *member_types, const char **member_names, idx_t member_count);
|
|
841
865
|
export function create_union_type(member_types: readonly LogicalType[], member_names: readonly string[]): LogicalType;
|
|
842
866
|
|
|
843
|
-
//
|
|
867
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_struct_type(duckdb_logical_type *member_types, const char **member_names, idx_t member_count);
|
|
844
868
|
export function create_struct_type(member_types: readonly LogicalType[], member_names: readonly string[]): LogicalType;
|
|
845
869
|
|
|
846
|
-
//
|
|
870
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_enum_type(const char **member_names, idx_t member_count);
|
|
847
871
|
export function create_enum_type(member_names: readonly string[]): LogicalType;
|
|
848
872
|
|
|
849
|
-
//
|
|
873
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_create_decimal_type(uint8_t width, uint8_t scale);
|
|
850
874
|
export function create_decimal_type(width: number, scale: number): LogicalType;
|
|
851
875
|
|
|
852
|
-
//
|
|
876
|
+
// DUCKDB_C_API duckdb_type duckdb_get_type_id(duckdb_logical_type type);
|
|
853
877
|
export function get_type_id(logical_type: LogicalType): Type;
|
|
854
878
|
|
|
855
|
-
//
|
|
879
|
+
// DUCKDB_C_API uint8_t duckdb_decimal_width(duckdb_logical_type type);
|
|
856
880
|
export function decimal_width(logical_type: LogicalType): number;
|
|
857
881
|
|
|
858
|
-
//
|
|
882
|
+
// DUCKDB_C_API uint8_t duckdb_decimal_scale(duckdb_logical_type type);
|
|
859
883
|
export function decimal_scale(logical_type: LogicalType): number;
|
|
860
884
|
|
|
861
|
-
//
|
|
885
|
+
// DUCKDB_C_API duckdb_type duckdb_decimal_internal_type(duckdb_logical_type type);
|
|
862
886
|
export function decimal_internal_type(logical_type: LogicalType): Type;
|
|
863
887
|
|
|
864
|
-
//
|
|
888
|
+
// DUCKDB_C_API duckdb_type duckdb_enum_internal_type(duckdb_logical_type type);
|
|
865
889
|
export function enum_internal_type(logical_type: LogicalType): Type;
|
|
866
890
|
|
|
867
|
-
//
|
|
891
|
+
// DUCKDB_C_API uint32_t duckdb_enum_dictionary_size(duckdb_logical_type type);
|
|
868
892
|
export function enum_dictionary_size(logical_type: LogicalType): number;
|
|
869
893
|
|
|
870
|
-
//
|
|
894
|
+
// DUCKDB_C_API char *duckdb_enum_dictionary_value(duckdb_logical_type type, idx_t index);
|
|
871
895
|
export function enum_dictionary_value(logical_type: LogicalType, index: number): string;
|
|
872
896
|
|
|
873
|
-
//
|
|
897
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_list_type_child_type(duckdb_logical_type type);
|
|
874
898
|
export function list_type_child_type(logical_type: LogicalType): LogicalType;
|
|
875
899
|
|
|
876
|
-
//
|
|
900
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_array_type_child_type(duckdb_logical_type type);
|
|
877
901
|
export function array_type_child_type(logical_type: LogicalType): LogicalType;
|
|
878
902
|
|
|
879
|
-
//
|
|
903
|
+
// DUCKDB_C_API idx_t duckdb_array_type_array_size(duckdb_logical_type type);
|
|
880
904
|
export function array_type_array_size(logical_type: LogicalType): number;
|
|
881
905
|
|
|
882
|
-
//
|
|
906
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_map_type_key_type(duckdb_logical_type type);
|
|
883
907
|
export function map_type_key_type(logical_type: LogicalType): LogicalType;
|
|
884
908
|
|
|
885
|
-
//
|
|
909
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_map_type_value_type(duckdb_logical_type type);
|
|
886
910
|
export function map_type_value_type(logical_type: LogicalType): LogicalType;
|
|
887
911
|
|
|
888
|
-
//
|
|
912
|
+
// DUCKDB_C_API idx_t duckdb_struct_type_child_count(duckdb_logical_type type);
|
|
889
913
|
export function struct_type_child_count(logical_type: LogicalType): number;
|
|
890
914
|
|
|
891
|
-
//
|
|
915
|
+
// DUCKDB_C_API char *duckdb_struct_type_child_name(duckdb_logical_type type, idx_t index);
|
|
892
916
|
export function struct_type_child_name(logical_type: LogicalType, index: number): string;
|
|
893
917
|
|
|
894
|
-
//
|
|
918
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_struct_type_child_type(duckdb_logical_type type, idx_t index);
|
|
895
919
|
export function struct_type_child_type(logical_type: LogicalType, index: number): LogicalType;
|
|
896
920
|
|
|
897
|
-
//
|
|
921
|
+
// DUCKDB_C_API idx_t duckdb_union_type_member_count(duckdb_logical_type type);
|
|
898
922
|
export function union_type_member_count(logical_type: LogicalType): number;
|
|
899
923
|
|
|
900
|
-
//
|
|
924
|
+
// DUCKDB_C_API char *duckdb_union_type_member_name(duckdb_logical_type type, idx_t index);
|
|
901
925
|
export function union_type_member_name(logical_type: LogicalType, index: number): string;
|
|
902
926
|
|
|
903
|
-
//
|
|
927
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_union_type_member_type(duckdb_logical_type type, idx_t index);
|
|
904
928
|
export function union_type_member_type(logical_type: LogicalType, index: number): LogicalType;
|
|
905
929
|
|
|
906
|
-
//
|
|
930
|
+
// DUCKDB_C_API void duckdb_destroy_logical_type(duckdb_logical_type *type);
|
|
907
931
|
// not exposed: destroyed in finalizer
|
|
908
932
|
|
|
909
|
-
//
|
|
933
|
+
// DUCKDB_C_API duckdb_state duckdb_register_logical_type(duckdb_connection con, duckdb_logical_type type, duckdb_create_type_info info);
|
|
910
934
|
// export function register_logical_type(connection: Connection, logical_type: LogicalType, info: CreateTypeInfo): void;
|
|
911
935
|
|
|
912
|
-
//
|
|
936
|
+
// DUCKDB_C_API duckdb_data_chunk duckdb_create_data_chunk(duckdb_logical_type *types, idx_t column_count);
|
|
913
937
|
export function create_data_chunk(logical_types: readonly LogicalType[]): DataChunk;
|
|
914
938
|
|
|
915
|
-
//
|
|
939
|
+
// DUCKDB_C_API void duckdb_destroy_data_chunk(duckdb_data_chunk *chunk);
|
|
916
940
|
// not exposed: destroyed in finalizer
|
|
917
941
|
|
|
918
|
-
//
|
|
942
|
+
// DUCKDB_C_API void duckdb_data_chunk_reset(duckdb_data_chunk chunk);
|
|
919
943
|
export function data_chunk_reset(chunk: DataChunk): void;
|
|
920
944
|
|
|
921
|
-
//
|
|
945
|
+
// DUCKDB_C_API idx_t duckdb_data_chunk_get_column_count(duckdb_data_chunk chunk);
|
|
922
946
|
export function data_chunk_get_column_count(chunk: DataChunk): number;
|
|
923
947
|
|
|
924
|
-
//
|
|
948
|
+
// DUCKDB_C_API duckdb_vector duckdb_data_chunk_get_vector(duckdb_data_chunk chunk, idx_t col_idx);
|
|
925
949
|
export function data_chunk_get_vector(chunk: DataChunk, column_index: number): Vector;
|
|
926
950
|
|
|
927
|
-
//
|
|
951
|
+
// DUCKDB_C_API idx_t duckdb_data_chunk_get_size(duckdb_data_chunk chunk);
|
|
928
952
|
export function data_chunk_get_size(chunk: DataChunk): number;
|
|
929
953
|
|
|
930
|
-
//
|
|
954
|
+
// DUCKDB_C_API void duckdb_data_chunk_set_size(duckdb_data_chunk chunk, idx_t size);
|
|
931
955
|
export function data_chunk_set_size(chunk: DataChunk, size: number): void;
|
|
932
956
|
|
|
933
|
-
//
|
|
957
|
+
// DUCKDB_C_API duckdb_vector duckdb_create_vector(duckdb_logical_type type, idx_t capacity);
|
|
958
|
+
|
|
959
|
+
// DUCKDB_C_API void duckdb_destroy_vector(duckdb_vector *vector);
|
|
960
|
+
|
|
961
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_vector_get_column_type(duckdb_vector vector);
|
|
934
962
|
export function vector_get_column_type(vector: Vector): LogicalType;
|
|
935
963
|
|
|
936
|
-
//
|
|
964
|
+
// DUCKDB_C_API void *duckdb_vector_get_data(duckdb_vector vector);
|
|
937
965
|
export function vector_get_data(vector: Vector, byte_count: number): Uint8Array;
|
|
938
966
|
|
|
939
|
-
//
|
|
967
|
+
// DUCKDB_C_API uint64_t *duckdb_vector_get_validity(duckdb_vector vector);
|
|
940
968
|
export function vector_get_validity(vector: Vector, byte_count: number): Uint8Array;
|
|
941
969
|
|
|
942
|
-
//
|
|
970
|
+
// DUCKDB_C_API void duckdb_vector_ensure_validity_writable(duckdb_vector vector);
|
|
943
971
|
export function vector_ensure_validity_writable(vector: Vector): void;
|
|
944
972
|
|
|
945
|
-
//
|
|
973
|
+
// DUCKDB_C_API void duckdb_vector_assign_string_element(duckdb_vector vector, idx_t index, const char *str);
|
|
946
974
|
export function vector_assign_string_element(vector: Vector, index: number, str: string): void;
|
|
947
975
|
|
|
948
|
-
//
|
|
976
|
+
// DUCKDB_C_API void duckdb_vector_assign_string_element_len(duckdb_vector vector, idx_t index, const char *str, idx_t str_len);
|
|
949
977
|
export function vector_assign_string_element_len(vector: Vector, index: number, data: Uint8Array): void;
|
|
950
978
|
|
|
951
|
-
//
|
|
979
|
+
// DUCKDB_C_API duckdb_vector duckdb_list_vector_get_child(duckdb_vector vector);
|
|
952
980
|
export function list_vector_get_child(vector: Vector): Vector;
|
|
953
981
|
|
|
954
|
-
//
|
|
982
|
+
// DUCKDB_C_API idx_t duckdb_list_vector_get_size(duckdb_vector vector);
|
|
955
983
|
export function list_vector_get_size(vector: Vector): number;
|
|
956
984
|
|
|
957
|
-
//
|
|
985
|
+
// DUCKDB_C_API duckdb_state duckdb_list_vector_set_size(duckdb_vector vector, idx_t size);
|
|
958
986
|
export function list_vector_set_size(vector: Vector, size: number): void;
|
|
959
987
|
|
|
960
|
-
//
|
|
988
|
+
// DUCKDB_C_API duckdb_state duckdb_list_vector_reserve(duckdb_vector vector, idx_t required_capacity);
|
|
961
989
|
export function list_vector_reserve(vector: Vector, required_capacity: number): void;
|
|
962
990
|
|
|
963
|
-
//
|
|
991
|
+
// DUCKDB_C_API duckdb_vector duckdb_struct_vector_get_child(duckdb_vector vector, idx_t index);
|
|
964
992
|
export function struct_vector_get_child(vector: Vector, index: number): Vector;
|
|
965
993
|
|
|
966
|
-
//
|
|
994
|
+
// DUCKDB_C_API duckdb_vector duckdb_array_vector_get_child(duckdb_vector vector);
|
|
967
995
|
export function array_vector_get_child(vector: Vector): Vector;
|
|
968
996
|
|
|
969
|
-
//
|
|
997
|
+
// DUCKDB_C_API void duckdb_slice_vector(duckdb_vector vector, duckdb_selection_vector selection, idx_t len);
|
|
998
|
+
|
|
999
|
+
// DUCKDB_C_API void duckdb_vector_reference_value(duckdb_vector vector, duckdb_value value);
|
|
1000
|
+
|
|
1001
|
+
// DUCKDB_C_API void duckdb_vector_reference_vector(duckdb_vector to_vector, duckdb_vector from_vector);
|
|
1002
|
+
|
|
1003
|
+
// DUCKDB_C_API bool duckdb_validity_row_is_valid(uint64_t *validity, idx_t row);
|
|
970
1004
|
export function validity_row_is_valid(validity: Uint8Array | null, row_index: number): boolean;
|
|
971
1005
|
|
|
972
|
-
//
|
|
1006
|
+
// DUCKDB_C_API void duckdb_validity_set_row_validity(uint64_t *validity, idx_t row, bool valid);
|
|
973
1007
|
export function validity_set_row_validity(validity: Uint8Array, row_index: number, valid: boolean): void;
|
|
974
1008
|
|
|
975
|
-
//
|
|
1009
|
+
// DUCKDB_C_API void duckdb_validity_set_row_invalid(uint64_t *validity, idx_t row);
|
|
976
1010
|
export function validity_set_row_invalid(validity: Uint8Array, row_index: number): void;
|
|
977
1011
|
|
|
978
|
-
//
|
|
1012
|
+
// DUCKDB_C_API void duckdb_validity_set_row_valid(uint64_t *validity, idx_t row);
|
|
979
1013
|
export function validity_set_row_valid(validity: Uint8Array, row_index: number): void;
|
|
980
1014
|
|
|
981
|
-
//
|
|
982
|
-
//
|
|
983
|
-
//
|
|
984
|
-
//
|
|
985
|
-
//
|
|
986
|
-
//
|
|
987
|
-
//
|
|
988
|
-
//
|
|
989
|
-
//
|
|
990
|
-
//
|
|
991
|
-
//
|
|
992
|
-
//
|
|
993
|
-
//
|
|
994
|
-
|
|
995
|
-
//
|
|
996
|
-
//
|
|
997
|
-
//
|
|
998
|
-
//
|
|
999
|
-
|
|
1000
|
-
//
|
|
1001
|
-
//
|
|
1002
|
-
//
|
|
1003
|
-
//
|
|
1004
|
-
|
|
1005
|
-
//
|
|
1006
|
-
//
|
|
1007
|
-
//
|
|
1008
|
-
|
|
1009
|
-
//
|
|
1010
|
-
//
|
|
1011
|
-
//
|
|
1012
|
-
|
|
1013
|
-
//
|
|
1014
|
-
//
|
|
1015
|
-
//
|
|
1016
|
-
//
|
|
1017
|
-
|
|
1018
|
-
//
|
|
1019
|
-
//
|
|
1020
|
-
//
|
|
1021
|
-
|
|
1022
|
-
//
|
|
1023
|
-
//
|
|
1024
|
-
//
|
|
1025
|
-
//
|
|
1026
|
-
|
|
1027
|
-
//
|
|
1028
|
-
//
|
|
1029
|
-
//
|
|
1030
|
-
|
|
1031
|
-
//
|
|
1032
|
-
//
|
|
1033
|
-
//
|
|
1034
|
-
//
|
|
1035
|
-
//
|
|
1036
|
-
//
|
|
1037
|
-
//
|
|
1038
|
-
//
|
|
1039
|
-
|
|
1040
|
-
//
|
|
1041
|
-
//
|
|
1042
|
-
//
|
|
1043
|
-
//
|
|
1044
|
-
//
|
|
1045
|
-
//
|
|
1046
|
-
//
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
//
|
|
1050
|
-
//
|
|
1051
|
-
//
|
|
1052
|
-
//
|
|
1053
|
-
|
|
1054
|
-
//
|
|
1055
|
-
//
|
|
1056
|
-
|
|
1057
|
-
//
|
|
1058
|
-
|
|
1059
|
-
//
|
|
1060
|
-
//
|
|
1061
|
-
//
|
|
1062
|
-
|
|
1063
|
-
//
|
|
1064
|
-
|
|
1065
|
-
//
|
|
1015
|
+
// DUCKDB_C_API duckdb_scalar_function duckdb_create_scalar_function();
|
|
1016
|
+
// DUCKDB_C_API void duckdb_destroy_scalar_function(duckdb_scalar_function *scalar_function);
|
|
1017
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_name(duckdb_scalar_function scalar_function, const char *name);
|
|
1018
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_varargs(duckdb_scalar_function scalar_function, duckdb_logical_type type);
|
|
1019
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_special_handling(duckdb_scalar_function scalar_function);
|
|
1020
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_volatile(duckdb_scalar_function scalar_function);
|
|
1021
|
+
// DUCKDB_C_API void duckdb_scalar_function_add_parameter(duckdb_scalar_function scalar_function, duckdb_logical_type type);
|
|
1022
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_return_type(duckdb_scalar_function scalar_function, duckdb_logical_type type);
|
|
1023
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_extra_info(duckdb_scalar_function scalar_function, void *extra_info, duckdb_delete_callback_t destroy);
|
|
1024
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_bind(duckdb_scalar_function scalar_function, duckdb_scalar_function_bind_t bind);
|
|
1025
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_bind_data(duckdb_bind_info info, void *bind_data, duckdb_delete_callback_t destroy);
|
|
1026
|
+
// DUCKDB_C_API void duckdb_scalar_function_bind_set_error(duckdb_bind_info info, const char *error);
|
|
1027
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_function(duckdb_scalar_function scalar_function, duckdb_scalar_function_t function);
|
|
1028
|
+
// DUCKDB_C_API duckdb_state duckdb_register_scalar_function(duckdb_connection con, duckdb_scalar_function scalar_function);
|
|
1029
|
+
// DUCKDB_C_API void *duckdb_scalar_function_get_extra_info(duckdb_function_info info);
|
|
1030
|
+
// DUCKDB_C_API void *duckdb_scalar_function_get_bind_data(duckdb_function_info info);
|
|
1031
|
+
// DUCKDB_C_API void duckdb_scalar_function_get_client_context(duckdb_bind_info info, duckdb_client_context *out_context);
|
|
1032
|
+
// DUCKDB_C_API void duckdb_scalar_function_set_error(duckdb_function_info info, const char *error);
|
|
1033
|
+
|
|
1034
|
+
// DUCKDB_C_API duckdb_scalar_function_set duckdb_create_scalar_function_set(const char *name);
|
|
1035
|
+
// DUCKDB_C_API void duckdb_destroy_scalar_function_set(duckdb_scalar_function_set *scalar_function_set);
|
|
1036
|
+
// DUCKDB_C_API duckdb_state duckdb_add_scalar_function_to_set(duckdb_scalar_function_set set, duckdb_scalar_function function);
|
|
1037
|
+
// DUCKDB_C_API duckdb_state duckdb_register_scalar_function_set(duckdb_connection con, duckdb_scalar_function_set set);
|
|
1038
|
+
|
|
1039
|
+
// DUCKDB_C_API duckdb_selection_vector duckdb_create_selection_vector(idx_t size);
|
|
1040
|
+
// DUCKDB_C_API void duckdb_destroy_selection_vector(duckdb_selection_vector vector);
|
|
1041
|
+
// DUCKDB_C_API sel_t *duckdb_selection_vector_get_data_ptr(duckdb_selection_vector vector);
|
|
1042
|
+
|
|
1043
|
+
// DUCKDB_C_API duckdb_aggregate_function duckdb_create_aggregate_function();
|
|
1044
|
+
// DUCKDB_C_API void duckdb_destroy_aggregate_function(duckdb_aggregate_function *aggregate_function);
|
|
1045
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_name(duckdb_aggregate_function aggregate_function, const char *name);
|
|
1046
|
+
// DUCKDB_C_API void duckdb_aggregate_function_add_parameter(duckdb_aggregate_function aggregate_function, duckdb_logical_type type);
|
|
1047
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_return_type(duckdb_aggregate_function aggregate_function, duckdb_logical_type type);
|
|
1048
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_functions(duckdb_aggregate_function aggregate_function, duckdb_aggregate_state_size state_size, duckdb_aggregate_init_t state_init, duckdb_aggregate_update_t update, duckdb_aggregate_combine_t combine, duckdb_aggregate_finalize_t finalize);
|
|
1049
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_destructor(duckdb_aggregate_function aggregate_function, duckdb_aggregate_destroy_t destroy);
|
|
1050
|
+
// DUCKDB_C_API duckdb_state duckdb_register_aggregate_function(duckdb_connection con, duckdb_aggregate_function aggregate_function);
|
|
1051
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_special_handling(duckdb_aggregate_function aggregate_function);
|
|
1052
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_extra_info(duckdb_aggregate_function aggregate_function, void *extra_info, duckdb_delete_callback_t destroy);
|
|
1053
|
+
// DUCKDB_C_API void *duckdb_aggregate_function_get_extra_info(duckdb_function_info info);
|
|
1054
|
+
// DUCKDB_C_API void duckdb_aggregate_function_set_error(duckdb_function_info info, const char *error);
|
|
1055
|
+
|
|
1056
|
+
// DUCKDB_C_API duckdb_aggregate_function_set duckdb_create_aggregate_function_set(const char *name);
|
|
1057
|
+
// DUCKDB_C_API void duckdb_destroy_aggregate_function_set(duckdb_aggregate_function_set *aggregate_function_set);
|
|
1058
|
+
// DUCKDB_C_API duckdb_state duckdb_add_aggregate_function_to_set(duckdb_aggregate_function_set set, duckdb_aggregate_function function);
|
|
1059
|
+
// DUCKDB_C_API duckdb_state duckdb_register_aggregate_function_set(duckdb_connection con, duckdb_aggregate_function_set set);
|
|
1060
|
+
|
|
1061
|
+
// DUCKDB_C_API duckdb_table_function duckdb_create_table_function();
|
|
1062
|
+
// DUCKDB_C_API void duckdb_destroy_table_function(duckdb_table_function *table_function);
|
|
1063
|
+
// DUCKDB_C_API void duckdb_table_function_set_name(duckdb_table_function table_function, const char *name);
|
|
1064
|
+
// DUCKDB_C_API void duckdb_table_function_add_parameter(duckdb_table_function table_function, duckdb_logical_type type);
|
|
1065
|
+
// DUCKDB_C_API void duckdb_table_function_add_named_parameter(duckdb_table_function table_function, const char *name, duckdb_logical_type type);
|
|
1066
|
+
// DUCKDB_C_API void duckdb_table_function_set_extra_info(duckdb_table_function table_function, void *extra_info, duckdb_delete_callback_t destroy);
|
|
1067
|
+
// DUCKDB_C_API void duckdb_table_function_set_bind(duckdb_table_function table_function, duckdb_table_function_bind_t bind);
|
|
1068
|
+
// DUCKDB_C_API void duckdb_table_function_set_init(duckdb_table_function table_function, duckdb_table_function_init_t init);
|
|
1069
|
+
// DUCKDB_C_API void duckdb_table_function_set_local_init(duckdb_table_function table_function, duckdb_table_function_init_t init);
|
|
1070
|
+
// DUCKDB_C_API void duckdb_table_function_set_function(duckdb_table_function table_function, duckdb_table_function_t function);
|
|
1071
|
+
// DUCKDB_C_API void duckdb_table_function_supports_projection_pushdown(duckdb_table_function table_function, bool pushdown);
|
|
1072
|
+
// DUCKDB_C_API duckdb_state duckdb_register_table_function(duckdb_connection con, duckdb_table_function function);
|
|
1073
|
+
|
|
1074
|
+
// DUCKDB_C_API void *duckdb_bind_get_extra_info(duckdb_bind_info info);
|
|
1075
|
+
// DUCKDB_C_API void duckdb_bind_add_result_column(duckdb_bind_info info, const char *name, duckdb_logical_type type);
|
|
1076
|
+
// DUCKDB_C_API idx_t duckdb_bind_get_parameter_count(duckdb_bind_info info);
|
|
1077
|
+
// DUCKDB_C_API duckdb_value duckdb_bind_get_parameter(duckdb_bind_info info, idx_t index);
|
|
1078
|
+
// DUCKDB_C_API duckdb_value duckdb_bind_get_named_parameter(duckdb_bind_info info, const char *name);
|
|
1079
|
+
// DUCKDB_C_API void duckdb_bind_set_bind_data(duckdb_bind_info info, void *bind_data, duckdb_delete_callback_t destroy);
|
|
1080
|
+
// DUCKDB_C_API void duckdb_bind_set_cardinality(duckdb_bind_info info, idx_t cardinality, bool is_exact);
|
|
1081
|
+
// DUCKDB_C_API void duckdb_bind_set_error(duckdb_bind_info info, const char *error);
|
|
1082
|
+
|
|
1083
|
+
// DUCKDB_C_API void *duckdb_init_get_extra_info(duckdb_init_info info);
|
|
1084
|
+
// DUCKDB_C_API void *duckdb_init_get_bind_data(duckdb_init_info info);
|
|
1085
|
+
// DUCKDB_C_API void duckdb_init_set_init_data(duckdb_init_info info, void *init_data, duckdb_delete_callback_t destroy);
|
|
1086
|
+
// DUCKDB_C_API idx_t duckdb_init_get_column_count(duckdb_init_info info);
|
|
1087
|
+
// DUCKDB_C_API idx_t duckdb_init_get_column_index(duckdb_init_info info, idx_t column_index);
|
|
1088
|
+
// DUCKDB_C_API void duckdb_init_set_max_threads(duckdb_init_info info, idx_t max_threads);
|
|
1089
|
+
// DUCKDB_C_API void duckdb_init_set_error(duckdb_init_info info, const char *error);
|
|
1090
|
+
|
|
1091
|
+
// DUCKDB_C_API void *duckdb_function_get_extra_info(duckdb_function_info info);
|
|
1092
|
+
// DUCKDB_C_API void *duckdb_function_get_bind_data(duckdb_function_info info);
|
|
1093
|
+
// DUCKDB_C_API void *duckdb_function_get_init_data(duckdb_function_info info);
|
|
1094
|
+
// DUCKDB_C_API void *duckdb_function_get_local_init_data(duckdb_function_info info);
|
|
1095
|
+
// DUCKDB_C_API void duckdb_function_set_error(duckdb_function_info info, const char *error);
|
|
1096
|
+
|
|
1097
|
+
// DUCKDB_C_API void duckdb_add_replacement_scan(duckdb_database db, duckdb_replacement_callback_t replacement, void *extra_data, duckdb_delete_callback_t delete_callback);
|
|
1098
|
+
// DUCKDB_C_API void duckdb_replacement_scan_set_function_name(duckdb_replacement_scan_info info, const char *function_name);
|
|
1099
|
+
// DUCKDB_C_API void duckdb_replacement_scan_add_parameter(duckdb_replacement_scan_info info, duckdb_value parameter);
|
|
1100
|
+
// DUCKDB_C_API void duckdb_replacement_scan_set_error(duckdb_replacement_scan_info info, const char *error);
|
|
1101
|
+
|
|
1102
|
+
// DUCKDB_C_API duckdb_profiling_info duckdb_get_profiling_info(duckdb_connection connection);
|
|
1103
|
+
// DUCKDB_C_API duckdb_value duckdb_profiling_info_get_value(duckdb_profiling_info info, const char *key);
|
|
1104
|
+
// DUCKDB_C_API duckdb_value duckdb_profiling_info_get_metrics(duckdb_profiling_info info);
|
|
1105
|
+
// DUCKDB_C_API idx_t duckdb_profiling_info_get_child_count(duckdb_profiling_info info);
|
|
1106
|
+
// DUCKDB_C_API duckdb_profiling_info duckdb_profiling_info_get_child(duckdb_profiling_info info, idx_t index);
|
|
1107
|
+
|
|
1108
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_create(duckdb_connection connection, const char *schema, const char *table, duckdb_appender *out_appender);
|
|
1066
1109
|
export function appender_create(connection: Connection, schema: string | null, table: string): Appender;
|
|
1067
1110
|
|
|
1068
|
-
//
|
|
1111
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_create_ext(duckdb_connection connection, const char *catalog, const char *schema, const char *table, duckdb_appender *out_appender);
|
|
1069
1112
|
export function appender_create_ext(connection: Connection, catalog: string | null, schema: string | null, table: string): Appender;
|
|
1070
1113
|
|
|
1071
|
-
//
|
|
1114
|
+
// DUCKDB_C_API idx_t duckdb_appender_column_count(duckdb_appender appender);
|
|
1072
1115
|
export function appender_column_count(appender: Appender): number;
|
|
1073
1116
|
|
|
1074
|
-
//
|
|
1117
|
+
// DUCKDB_C_API duckdb_logical_type duckdb_appender_column_type(duckdb_appender appender, idx_t col_idx);
|
|
1075
1118
|
export function appender_column_type(appender: Appender, column_index: number): LogicalType;
|
|
1076
1119
|
|
|
1077
|
-
//
|
|
1120
|
+
// DUCKDB_C_API const char *duckdb_appender_error(duckdb_appender appender);
|
|
1078
1121
|
// not exposed: other appender functions throw
|
|
1079
1122
|
|
|
1080
|
-
//
|
|
1123
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_flush(duckdb_appender appender);
|
|
1081
1124
|
export function appender_flush_sync(appender: Appender): void;
|
|
1082
1125
|
|
|
1083
|
-
//
|
|
1126
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_close(duckdb_appender appender);
|
|
1084
1127
|
export function appender_close_sync(appender: Appender): void;
|
|
1085
1128
|
|
|
1086
|
-
//
|
|
1129
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_destroy(duckdb_appender *appender);
|
|
1087
1130
|
// not exposed: destroyed in finalizer
|
|
1088
1131
|
|
|
1089
|
-
//
|
|
1090
|
-
//
|
|
1132
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_add_column(duckdb_appender appender, const char *name);
|
|
1133
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_clear_columns(duckdb_appender appender);
|
|
1091
1134
|
|
|
1092
|
-
//
|
|
1135
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_begin_row(duckdb_appender appender);
|
|
1093
1136
|
// not exposed: no-op
|
|
1094
1137
|
|
|
1095
|
-
//
|
|
1138
|
+
// DUCKDB_C_API duckdb_state duckdb_appender_end_row(duckdb_appender appender);
|
|
1096
1139
|
export function appender_end_row(appender: Appender): void;
|
|
1097
1140
|
|
|
1098
|
-
//
|
|
1141
|
+
// DUCKDB_C_API duckdb_state duckdb_append_default(duckdb_appender appender);
|
|
1099
1142
|
export function append_default(appender: Appender): void;
|
|
1100
1143
|
|
|
1101
|
-
//
|
|
1144
|
+
// DUCKDB_C_API duckdb_state duckdb_append_default_to_chunk(duckdb_appender appender, duckdb_data_chunk chunk, idx_t col, idx_t row);
|
|
1102
1145
|
|
|
1103
|
-
//
|
|
1146
|
+
// DUCKDB_C_API duckdb_state duckdb_append_bool(duckdb_appender appender, bool value);
|
|
1104
1147
|
export function append_bool(appender: Appender, bool: boolean): void;
|
|
1105
1148
|
|
|
1106
|
-
//
|
|
1149
|
+
// DUCKDB_C_API duckdb_state duckdb_append_int8(duckdb_appender appender, int8_t value);
|
|
1107
1150
|
export function append_int8(appender: Appender, int8: number): void;
|
|
1108
1151
|
|
|
1109
|
-
//
|
|
1152
|
+
// DUCKDB_C_API duckdb_state duckdb_append_int16(duckdb_appender appender, int16_t value);
|
|
1110
1153
|
export function append_int16(appender: Appender, int16: number): void;
|
|
1111
1154
|
|
|
1112
|
-
//
|
|
1155
|
+
// DUCKDB_C_API duckdb_state duckdb_append_int32(duckdb_appender appender, int32_t value);
|
|
1113
1156
|
export function append_int32(appender: Appender, int32: number): void;
|
|
1114
1157
|
|
|
1115
|
-
//
|
|
1158
|
+
// DUCKDB_C_API duckdb_state duckdb_append_int64(duckdb_appender appender, int64_t value);
|
|
1116
1159
|
export function append_int64(appender: Appender, int64: bigint): void;
|
|
1117
1160
|
|
|
1118
|
-
//
|
|
1161
|
+
// DUCKDB_C_API duckdb_state duckdb_append_hugeint(duckdb_appender appender, duckdb_hugeint value);
|
|
1119
1162
|
export function append_hugeint(appender: Appender, hugeint: bigint): void;
|
|
1120
1163
|
|
|
1121
|
-
//
|
|
1164
|
+
// DUCKDB_C_API duckdb_state duckdb_append_uint8(duckdb_appender appender, uint8_t value);
|
|
1122
1165
|
export function append_uint8(appender: Appender, uint8: number): void;
|
|
1123
1166
|
|
|
1124
|
-
//
|
|
1167
|
+
// DUCKDB_C_API duckdb_state duckdb_append_uint16(duckdb_appender appender, uint16_t value);
|
|
1125
1168
|
export function append_uint16(appender: Appender, uint16: number): void;
|
|
1126
1169
|
|
|
1127
|
-
//
|
|
1170
|
+
// DUCKDB_C_API duckdb_state duckdb_append_uint32(duckdb_appender appender, uint32_t value);
|
|
1128
1171
|
export function append_uint32(appender: Appender, uint32: number): void;
|
|
1129
1172
|
|
|
1130
|
-
//
|
|
1173
|
+
// DUCKDB_C_API duckdb_state duckdb_append_uint64(duckdb_appender appender, uint64_t value);
|
|
1131
1174
|
export function append_uint64(appender: Appender, uint64: bigint): void;
|
|
1132
1175
|
|
|
1133
|
-
//
|
|
1176
|
+
// DUCKDB_C_API duckdb_state duckdb_append_uhugeint(duckdb_appender appender, duckdb_uhugeint value);
|
|
1134
1177
|
export function append_uhugeint(appender: Appender, uhugeint: bigint): void;
|
|
1135
1178
|
|
|
1136
|
-
//
|
|
1179
|
+
// DUCKDB_C_API duckdb_state duckdb_append_float(duckdb_appender appender, float value);
|
|
1137
1180
|
export function append_float(appender: Appender, float: number): void;
|
|
1138
1181
|
|
|
1139
|
-
//
|
|
1182
|
+
// DUCKDB_C_API duckdb_state duckdb_append_double(duckdb_appender appender, double value);
|
|
1140
1183
|
export function append_double(appender: Appender, double: number): void;
|
|
1141
1184
|
|
|
1142
|
-
//
|
|
1185
|
+
// DUCKDB_C_API duckdb_state duckdb_append_date(duckdb_appender appender, duckdb_date value);
|
|
1143
1186
|
export function append_date(appender: Appender, date: Date_): void;
|
|
1144
1187
|
|
|
1145
|
-
//
|
|
1188
|
+
// DUCKDB_C_API duckdb_state duckdb_append_time(duckdb_appender appender, duckdb_time value);
|
|
1146
1189
|
export function append_time(appender: Appender, time: Time): void;
|
|
1147
1190
|
|
|
1148
|
-
//
|
|
1191
|
+
// DUCKDB_C_API duckdb_state duckdb_append_timestamp(duckdb_appender appender, duckdb_timestamp value);
|
|
1149
1192
|
export function append_timestamp(appender: Appender, timestamp: Timestamp): void;
|
|
1150
1193
|
|
|
1151
|
-
//
|
|
1194
|
+
// DUCKDB_C_API duckdb_state duckdb_append_interval(duckdb_appender appender, duckdb_interval value);
|
|
1152
1195
|
export function append_interval(appender: Appender, interval: Interval): void;
|
|
1153
1196
|
|
|
1154
|
-
//
|
|
1197
|
+
// DUCKDB_C_API duckdb_state duckdb_append_varchar(duckdb_appender appender, const char *val);
|
|
1155
1198
|
export function append_varchar(appender: Appender, varchar: string): void;
|
|
1156
1199
|
|
|
1157
|
-
//
|
|
1200
|
+
// DUCKDB_C_API duckdb_state duckdb_append_varchar_length(duckdb_appender appender, const char *val, idx_t length);
|
|
1158
1201
|
// not exposed: JS string includes length
|
|
1159
1202
|
|
|
1160
|
-
//
|
|
1203
|
+
// DUCKDB_C_API duckdb_state duckdb_append_blob(duckdb_appender appender, const void *data, idx_t length);
|
|
1161
1204
|
export function append_blob(appender: Appender, data: Uint8Array): void;
|
|
1162
1205
|
|
|
1163
|
-
//
|
|
1206
|
+
// DUCKDB_C_API duckdb_state duckdb_append_null(duckdb_appender appender);
|
|
1164
1207
|
export function append_null(appender: Appender): void;
|
|
1165
1208
|
|
|
1166
|
-
//
|
|
1209
|
+
// DUCKDB_C_API duckdb_state duckdb_append_value(duckdb_appender appender, duckdb_value value);
|
|
1167
1210
|
export function append_value(appender: Appender, value: Value): void;
|
|
1168
1211
|
|
|
1169
|
-
//
|
|
1212
|
+
// DUCKDB_C_API duckdb_state duckdb_append_data_chunk(duckdb_appender appender, duckdb_data_chunk chunk);
|
|
1170
1213
|
export function append_data_chunk(appender: Appender, chunk: DataChunk): void;
|
|
1171
1214
|
|
|
1172
|
-
//
|
|
1173
|
-
//
|
|
1174
|
-
//
|
|
1175
|
-
//
|
|
1176
|
-
//
|
|
1177
|
-
//
|
|
1215
|
+
// DUCKDB_C_API duckdb_state duckdb_table_description_create(duckdb_connection connection, const char *schema, const char *table, duckdb_table_description *out);
|
|
1216
|
+
// DUCKDB_C_API duckdb_state duckdb_table_description_create_ext(duckdb_connection connection, const char *catalog, const char *schema, const char *table, duckdb_table_description *out);
|
|
1217
|
+
// DUCKDB_C_API void duckdb_table_description_destroy(duckdb_table_description *table_description);
|
|
1218
|
+
// DUCKDB_C_API const char *duckdb_table_description_error(duckdb_table_description table_description);
|
|
1219
|
+
// DUCKDB_C_API duckdb_state duckdb_column_has_default(duckdb_table_description table_description, idx_t index, bool *out);
|
|
1220
|
+
// DUCKDB_C_API char *duckdb_table_description_get_column_name(duckdb_table_description table_description, idx_t index);
|
|
1178
1221
|
|
|
1179
1222
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
1180
|
-
//
|
|
1181
|
-
//
|
|
1182
|
-
//
|
|
1183
|
-
//
|
|
1184
|
-
//
|
|
1185
|
-
//
|
|
1186
|
-
//
|
|
1187
|
-
//
|
|
1188
|
-
//
|
|
1189
|
-
//
|
|
1190
|
-
//
|
|
1191
|
-
//
|
|
1192
|
-
//
|
|
1193
|
-
//
|
|
1223
|
+
// DUCKDB_C_API duckdb_state duckdb_query_arrow(duckdb_connection connection, const char *query, duckdb_arrow *out_result);
|
|
1224
|
+
// DUCKDB_C_API duckdb_state duckdb_query_arrow_schema(duckdb_arrow result, duckdb_arrow_schema *out_schema);
|
|
1225
|
+
// DUCKDB_C_API duckdb_state duckdb_prepared_arrow_schema(duckdb_prepared_statement prepared, duckdb_arrow_schema *out_schema);
|
|
1226
|
+
// DUCKDB_C_API void duckdb_result_arrow_array(duckdb_result result, duckdb_data_chunk chunk, duckdb_arrow_array *out_array);
|
|
1227
|
+
// DUCKDB_C_API duckdb_state duckdb_query_arrow_array(duckdb_arrow result, duckdb_arrow_array *out_array);
|
|
1228
|
+
// DUCKDB_C_API idx_t duckdb_arrow_column_count(duckdb_arrow result);
|
|
1229
|
+
// DUCKDB_C_API idx_t duckdb_arrow_row_count(duckdb_arrow result);
|
|
1230
|
+
// DUCKDB_C_API idx_t duckdb_arrow_rows_changed(duckdb_arrow result);
|
|
1231
|
+
// DUCKDB_C_API const char *duckdb_query_arrow_error(duckdb_arrow result);
|
|
1232
|
+
// DUCKDB_C_API void duckdb_destroy_arrow(duckdb_arrow *result);
|
|
1233
|
+
// DUCKDB_C_API void duckdb_destroy_arrow_stream(duckdb_arrow_stream *stream_p);
|
|
1234
|
+
// DUCKDB_C_API duckdb_state duckdb_execute_prepared_arrow(duckdb_prepared_statement prepared_statement, duckdb_arrow *out_result);
|
|
1235
|
+
// DUCKDB_C_API duckdb_state duckdb_arrow_scan(duckdb_connection connection, const char *table_name, duckdb_arrow_stream arrow);
|
|
1236
|
+
// DUCKDB_C_API duckdb_state duckdb_arrow_array_scan(duckdb_connection connection, const char *table_name, duckdb_arrow_schema arrow_schema, duckdb_arrow_array arrow_array, duckdb_arrow_stream *out_stream);
|
|
1194
1237
|
// #endif
|
|
1195
1238
|
|
|
1196
|
-
//
|
|
1197
|
-
//
|
|
1198
|
-
//
|
|
1199
|
-
//
|
|
1200
|
-
//
|
|
1201
|
-
//
|
|
1202
|
-
//
|
|
1203
|
-
//
|
|
1239
|
+
// DUCKDB_C_API void duckdb_execute_tasks(duckdb_database database, idx_t max_tasks);
|
|
1240
|
+
// DUCKDB_C_API duckdb_task_state duckdb_create_task_state(duckdb_database database);
|
|
1241
|
+
// DUCKDB_C_API void duckdb_execute_tasks_state(duckdb_task_state state);
|
|
1242
|
+
// DUCKDB_C_API idx_t duckdb_execute_n_tasks_state(duckdb_task_state state, idx_t max_tasks);
|
|
1243
|
+
// DUCKDB_C_API void duckdb_finish_execution(duckdb_task_state state);
|
|
1244
|
+
// DUCKDB_C_API bool duckdb_task_state_is_finished(duckdb_task_state state);
|
|
1245
|
+
// DUCKDB_C_API void duckdb_destroy_task_state(duckdb_task_state state);
|
|
1246
|
+
// DUCKDB_C_API bool duckdb_execution_is_finished(duckdb_connection con);
|
|
1204
1247
|
|
|
1205
1248
|
// #ifndef DUCKDB_API_NO_DEPRECATED
|
|
1206
|
-
//
|
|
1249
|
+
// DUCKDB_C_API duckdb_data_chunk duckdb_stream_fetch_chunk(duckdb_result result);
|
|
1207
1250
|
// #endif
|
|
1208
1251
|
|
|
1209
|
-
//
|
|
1252
|
+
// DUCKDB_C_API duckdb_data_chunk duckdb_fetch_chunk(duckdb_result result);
|
|
1210
1253
|
export function fetch_chunk(result: Result): Promise<DataChunk | null>;
|
|
1211
1254
|
|
|
1212
|
-
//
|
|
1213
|
-
//
|
|
1214
|
-
//
|
|
1215
|
-
//
|
|
1216
|
-
//
|
|
1217
|
-
//
|
|
1218
|
-
//
|
|
1219
|
-
//
|
|
1220
|
-
//
|
|
1221
|
-
//
|
|
1222
|
-
//
|
|
1223
|
-
//
|
|
1255
|
+
// DUCKDB_C_API duckdb_cast_function duckdb_create_cast_function();
|
|
1256
|
+
// DUCKDB_C_API void duckdb_cast_function_set_source_type(duckdb_cast_function cast_function, duckdb_logical_type source_type);
|
|
1257
|
+
// DUCKDB_C_API void duckdb_cast_function_set_target_type(duckdb_cast_function cast_function, duckdb_logical_type target_type);
|
|
1258
|
+
// DUCKDB_C_API void duckdb_cast_function_set_implicit_cast_cost(duckdb_cast_function cast_function, int64_t cost);
|
|
1259
|
+
// DUCKDB_C_API void duckdb_cast_function_set_function(duckdb_cast_function cast_function, duckdb_cast_function_t function);
|
|
1260
|
+
// DUCKDB_C_API void duckdb_cast_function_set_extra_info(duckdb_cast_function cast_function, void *extra_info, duckdb_delete_callback_t destroy);
|
|
1261
|
+
// DUCKDB_C_API void *duckdb_cast_function_get_extra_info(duckdb_function_info info);
|
|
1262
|
+
// DUCKDB_C_API duckdb_cast_mode duckdb_cast_function_get_cast_mode(duckdb_function_info info);
|
|
1263
|
+
// DUCKDB_C_API void duckdb_cast_function_set_error(duckdb_function_info info, const char *error);
|
|
1264
|
+
// DUCKDB_C_API void duckdb_cast_function_set_row_error(duckdb_function_info info, const char *error, idx_t row, duckdb_vector output);
|
|
1265
|
+
// DUCKDB_C_API duckdb_state duckdb_register_cast_function(duckdb_connection con, duckdb_cast_function cast_function);
|
|
1266
|
+
// DUCKDB_C_API void duckdb_destroy_cast_function(duckdb_cast_function *cast_function);
|
|
1224
1267
|
|
|
1225
1268
|
// ADDED
|
|
1226
1269
|
/**
|