@motherduck/wasm-client 0.6.3 → 0.6.5

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.
Files changed (112) hide show
  1. package/README.md +1 -3
  2. package/index.js +1 -1
  3. package/index_with_arrow.js +9 -9
  4. package/package.json +2 -2
  5. package/types/DuckDBInstance.d.ts +1 -1
  6. package/types/MDConnection.d.ts +2 -7
  7. package/types/MDConnectionParams.d.ts +4 -3
  8. package/types/MaterializedQueryTask.d.ts +2 -2
  9. package/types/QueryTypes.d.ts +5 -1
  10. package/types/StreamingQueryTask.d.ts +2 -2
  11. package/types/createDuckDbConnection.d.ts +1 -1
  12. package/types/duckdb-wasm/bindings/bindings_base.d.ts +122 -0
  13. package/types/duckdb-wasm/bindings/bindings_browser_base.d.ts +19 -0
  14. package/types/duckdb-wasm/bindings/bindings_browser_coi.d.ts +12 -0
  15. package/types/duckdb-wasm/bindings/bindings_browser_eh.d.ts +12 -0
  16. package/types/duckdb-wasm/bindings/bindings_browser_mvp.d.ts +11 -0
  17. package/types/duckdb-wasm/bindings/bindings_interface.d.ts +41 -0
  18. package/types/duckdb-wasm/bindings/bindings_node_base.d.ts +23 -0
  19. package/types/duckdb-wasm/bindings/bindings_node_eh.d.ts +12 -0
  20. package/types/duckdb-wasm/bindings/bindings_node_mvp.d.ts +12 -0
  21. package/types/duckdb-wasm/bindings/config.d.ts +66 -0
  22. package/types/duckdb-wasm/bindings/connection.d.ts +74 -0
  23. package/types/duckdb-wasm/bindings/duckdb_module.d.ts +12 -0
  24. package/types/duckdb-wasm/bindings/file_stats.d.ts +36 -0
  25. package/types/duckdb-wasm/bindings/index.d.ts +11 -0
  26. package/types/duckdb-wasm/bindings/insert_options.d.ts +38 -0
  27. package/types/duckdb-wasm/bindings/progress.d.ts +9 -0
  28. package/types/duckdb-wasm/bindings/runtime.d.ts +83 -0
  29. package/types/duckdb-wasm/bindings/runtime_browser.d.ts +9 -0
  30. package/types/duckdb-wasm/bindings/runtime_node.d.ts +8 -0
  31. package/types/duckdb-wasm/bindings/tokens.d.ts +12 -0
  32. package/types/duckdb-wasm/bindings/udf_function.d.ts +14 -0
  33. package/types/duckdb-wasm/bindings/udf_runtime.d.ts +3 -0
  34. package/types/duckdb-wasm/bindings/web_file.d.ts +12 -0
  35. package/types/duckdb-wasm/index.d.ts +7 -0
  36. package/types/duckdb-wasm/index_docs.d.ts +1 -0
  37. package/types/duckdb-wasm/json_typedef.d.ts +17 -0
  38. package/types/duckdb-wasm/log.d.ts +54 -0
  39. package/types/duckdb-wasm/parallel/async_bindings.d.ts +122 -0
  40. package/types/duckdb-wasm/parallel/async_bindings_interface.d.ts +25 -0
  41. package/types/duckdb-wasm/parallel/async_connection.d.ts +75 -0
  42. package/types/duckdb-wasm/parallel/index.d.ts +5 -0
  43. package/types/duckdb-wasm/parallel/worker_dispatcher.d.ts +22 -0
  44. package/types/duckdb-wasm/parallel/worker_request.d.ts +99 -0
  45. package/types/duckdb-wasm/platform.d.ts +39 -0
  46. package/types/duckdb-wasm/status.d.ts +3 -0
  47. package/types/duckdb-wasm/targets/duckdb-browser-blocking.d.ts +12 -0
  48. package/types/duckdb-wasm/targets/duckdb-browser-coi.pthread.worker.d.ts +1 -0
  49. package/types/duckdb-wasm/targets/duckdb-browser-coi.worker.d.ts +2 -0
  50. package/types/duckdb-wasm/targets/duckdb-browser-eh.worker.d.ts +2 -0
  51. package/types/duckdb-wasm/targets/duckdb-browser-mvp.worker.d.ts +2 -0
  52. package/types/duckdb-wasm/targets/duckdb-node-blocking.d.ts +13 -0
  53. package/types/duckdb-wasm/targets/duckdb-node-eh.worker.d.ts +2 -0
  54. package/types/duckdb-wasm/targets/duckdb-node-mvp.worker.d.ts +2 -0
  55. package/types/duckdb-wasm/targets/duckdb.d.ts +9 -0
  56. package/types/duckdb-wasm/utils/binary_dump.d.ts +1 -0
  57. package/types/duckdb-wasm/utils/index.d.ts +2 -0
  58. package/types/duckdb-wasm/utils/s3_helper.d.ts +27 -0
  59. package/types/duckdb-wasm/version.d.ts +5 -0
  60. package/types/duckdb-wasm/worker.d.ts +1 -0
  61. package/types/fetchDuckDBBundlesFromDuckDBAssets.d.ts +2 -0
  62. package/types/getAsyncDuckDb.d.ts +2 -1
  63. package/types/index.d.ts +0 -1
  64. package/types/instantiateDB.d.ts +2 -1
  65. package/types/isDuckDBBundles.d.ts +2 -0
  66. package/types/motherduck/duckdb-arrow/AsyncDuckDBRecordBatchIterator.d.ts +1 -1
  67. package/types/motherduck/duckdb-arrow/DuckDBRecordBatch.d.ts +3 -3
  68. package/types/motherduck/duckdb-arrow/duckDBTypeFromArrowType.d.ts +2 -2
  69. package/types/motherduck/duckdb-arrow/duckDBValueFromArrowData.d.ts +3 -3
  70. package/types/motherduck/duckdb-data/DuckDBData.d.ts +2 -2
  71. package/types/motherduck/duckdb-data/DuckDBDataReader.d.ts +2 -2
  72. package/types/motherduck/duckdb-data/DuckDBRow.d.ts +1 -1
  73. package/types/motherduck/duckdb-data/MemoryDuckDBData.d.ts +2 -2
  74. package/types/motherduck/duckdb-types/DuckDBType.d.ts +7 -1
  75. package/types/motherduck/duckdb-types/DuckDBTypes.d.ts +3 -1
  76. package/types/motherduck/duckdb-types/duckDBTypeToString.d.ts +2 -0
  77. package/types/motherduck/duckdb-types/index.d.ts +1 -0
  78. package/types/motherduck/duckdb-values/DuckDBArray.d.ts +1 -0
  79. package/types/motherduck/duckdb-values/DuckDBBlob.d.ts +1 -0
  80. package/types/motherduck/duckdb-values/DuckDBDate.d.ts +1 -0
  81. package/types/motherduck/duckdb-values/DuckDBDecimal.d.ts +1 -0
  82. package/types/motherduck/duckdb-values/DuckDBInterval.d.ts +1 -0
  83. package/types/motherduck/duckdb-values/DuckDBList.d.ts +1 -0
  84. package/types/motherduck/duckdb-values/DuckDBMap.d.ts +1 -0
  85. package/types/motherduck/duckdb-values/DuckDBStruct.d.ts +1 -0
  86. package/types/motherduck/duckdb-values/DuckDBTime.d.ts +1 -0
  87. package/types/motherduck/duckdb-values/DuckDBTimestampMicroseconds.d.ts +1 -0
  88. package/types/motherduck/duckdb-values/DuckDBTimestampMilliseconds.d.ts +1 -0
  89. package/types/motherduck/duckdb-values/DuckDBTimestampNanoseconds.d.ts +1 -0
  90. package/types/motherduck/duckdb-values/DuckDBTimestampSeconds.d.ts +1 -0
  91. package/types/motherduck/duckdb-values/DuckDBUUID.d.ts +7 -0
  92. package/types/motherduck/duckdb-values/DuckDBValue.d.ts +1 -0
  93. package/types/motherduck/duckdb-values/SpecialDuckDBValue.d.ts +1 -0
  94. package/types/motherduck/duckdb-values/conversion/hexFromBlob.d.ts +1 -0
  95. package/types/motherduck/duckdb-values/index.d.ts +1 -0
  96. package/types/motherduck/wasm-extension/LoadMotherDuckWasmExtensionOptions.d.ts +5 -1
  97. package/types/motherduck/wasm-extension/fetchMotherDuckWasmExtensionVersion.d.ts +1 -0
  98. package/types/motherduck/wasm-extension/index.d.ts +1 -0
  99. package/types/motherduck/wasm-extension/untilWorkerReady.d.ts +1 -1
  100. package/types/prefixDuckDBBundles.d.ts +2 -0
  101. package/types/readLocalFS.d.ts +2 -2
  102. package/index.js.map +0 -7
  103. package/types/LogSink.d.ts +0 -6
  104. package/types/TaskSequencer.d.ts +0 -55
  105. package/types/extractWrappedErrorMessage.d.ts +0 -17
  106. package/types/fetchDuckDBAssets.d.ts +0 -17
  107. package/types/fetchVersion.d.ts +0 -1
  108. package/types/genConnectionId.d.ts +0 -1
  109. package/types/getDuckDBBundlesFromDuckDBAssets.d.ts +0 -2
  110. package/types/getErrorMessage.d.ts +0 -1
  111. package/types/recursivelyPrefix.d.ts +0 -1
  112. package/types/transformQueryError.d.ts +0 -2
@@ -0,0 +1,2 @@
1
+ /** Register the worker */
2
+ export declare function registerWorker(): void;
@@ -0,0 +1,2 @@
1
+ /** Register the worker */
2
+ export declare function registerWorker(): void;
@@ -0,0 +1,2 @@
1
+ /** Register the worker */
2
+ export declare function registerWorker(): void;
@@ -0,0 +1,13 @@
1
+ export * from '../bindings';
2
+ export * from '../log';
3
+ export * from '../platform';
4
+ export * from '../status';
5
+ export * from '../version';
6
+ export { DuckDBDataProtocol } from '../bindings/runtime';
7
+ export { DEFAULT_RUNTIME } from '../bindings/runtime';
8
+ export { NODE_RUNTIME } from '../bindings/runtime_node';
9
+ import { Logger } from '../log';
10
+ import { DuckDBRuntime } from '../bindings';
11
+ import { DuckDBNodeBindings } from '../bindings/bindings_node_base';
12
+ import { DuckDBBundles } from '../platform';
13
+ export declare function createDuckDB(bundles: DuckDBBundles, logger: Logger, runtime: DuckDBRuntime): Promise<DuckDBNodeBindings>;
@@ -0,0 +1,2 @@
1
+ /** Register the worker */
2
+ export declare function registerWorker(): void;
@@ -0,0 +1,2 @@
1
+ /** Register the worker */
2
+ export declare function registerWorker(): void;
@@ -0,0 +1,9 @@
1
+ export * from '../bindings/config';
2
+ export * from '../bindings/tokens';
3
+ export * from '../log';
4
+ export * from '../status';
5
+ export * from '../parallel';
6
+ export * from '../platform';
7
+ export * from '../version';
8
+ export * from '../worker';
9
+ export { InstantiationProgress, InstantiationProgressHandler, DuckDBDataProtocol, WebFile } from '../bindings';
@@ -0,0 +1 @@
1
+ export declare function dumpBuffer(src: Uint8Array): string;
@@ -0,0 +1,2 @@
1
+ export * from './binary_dump';
2
+ export * from './s3_helper';
@@ -0,0 +1,27 @@
1
+ import { S3Config } from "../bindings";
2
+ export interface S3Params {
3
+ url: string;
4
+ query: string;
5
+ host: string;
6
+ region: string;
7
+ service: string;
8
+ method: string;
9
+ accessKeyId: string;
10
+ secretAccessKey: string;
11
+ sessionToken: string;
12
+ dateNow: string;
13
+ datetimeNow: string;
14
+ }
15
+ export interface S3PayloadParams {
16
+ contentHash: string | null;
17
+ contentType: string | null;
18
+ }
19
+ export declare function getS3Params(config: S3Config | undefined, url: string, method: string): S3Params;
20
+ export declare function uriEncode(input: string, encode_slash?: boolean): string;
21
+ export declare function createS3Headers(params: S3Params, payloadParams?: S3PayloadParams | null): Map<string, string>;
22
+ export declare function addS3Headers(xhr: XMLHttpRequest, config: S3Config | undefined, url: string, method: string, contentType?: string | null, payload?: Uint8Array | null): void;
23
+ export declare function parseS3Url(url: string): {
24
+ bucket: string;
25
+ path: string;
26
+ };
27
+ export declare function getHTTPUrl(config: S3Config | undefined, url: string): string;
@@ -0,0 +1,5 @@
1
+ export declare const PACKAGE_NAME: string;
2
+ export declare const PACKAGE_VERSION: string;
3
+ export declare const PACKAGE_VERSION_MAJOR: string;
4
+ export declare const PACKAGE_VERSION_MINOR: string;
5
+ export declare const PACKAGE_VERSION_PATCH: string;
@@ -0,0 +1 @@
1
+ export declare function createWorker(url: string): Promise<Worker>;
@@ -0,0 +1,2 @@
1
+ import { DuckDBBundles } from './duckdb-wasm';
2
+ export declare function fetchDuckDBBundlesFromDuckDBAssets(duckDBAssetsURLPrefix: string, version: string | undefined, includeCOI: boolean | undefined): Promise<DuckDBBundles>;
@@ -1,3 +1,4 @@
1
- import { AsyncDuckDB } from '@duckdb/duckdb-wasm';
1
+ import { AsyncDuckDB } from './duckdb-wasm';
2
2
  import { MDConnectionParams } from './MDConnectionParams';
3
+ export { AsyncDuckDB };
3
4
  export declare function getAsyncDuckDb(params: MDConnectionParams): Promise<AsyncDuckDB>;
package/types/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { TypedTypeMap } from './motherduck/duckdb-arrow';
2
1
  export * from './motherduck/duckdb-data';
3
2
  export * from './motherduck/duckdb-types';
4
3
  export * from './motherduck/duckdb-values';
@@ -1,2 +1,3 @@
1
+ import { AsyncDuckDB } from './duckdb-wasm';
1
2
  import { MDConnectionParams } from './MDConnectionParams';
2
- export declare function instantiateDB(params: MDConnectionParams): Promise<import("@duckdb/duckdb-wasm").AsyncDuckDB>;
3
+ export declare function instantiateDB(params: MDConnectionParams): Promise<AsyncDuckDB>;
@@ -0,0 +1,2 @@
1
+ import { DuckDBBundles } from './duckdb-wasm';
2
+ export declare function isDuckDBBundles(input: unknown): input is DuckDBBundles;
@@ -1,5 +1,5 @@
1
1
  import { RecordBatch } from 'apache-arrow';
2
- import { AsyncDuckDBDataBatchIterator, DuckDBData, DuckDBDataBatchIteratorResult } from '@motherduck/duckdb-data';
2
+ import { AsyncDuckDBDataBatchIterator, DuckDBData, DuckDBDataBatchIteratorResult } from '../../motherduck/duckdb-data';
3
3
  import { TypedTypeMap } from './TypedTypeMap.js';
4
4
  export type AsyncRecordBatchIterator = AsyncIterator<RecordBatch<TypedTypeMap>, RecordBatch<TypedTypeMap> | undefined>;
5
5
  export declare class AsyncDuckDBRecordBatchIterator implements AsyncDuckDBDataBatchIterator {
@@ -1,6 +1,6 @@
1
- import { DuckDBData } from '@motherduck/duckdb-data';
2
- import { DuckDBType } from '@motherduck/duckdb-types';
3
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBData } from '../../motherduck/duckdb-data';
2
+ import { DuckDBType } from '../../motherduck/duckdb-types';
3
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
4
4
  import { RecordBatch } from 'apache-arrow';
5
5
  import { TypedTypeMap } from './TypedTypeMap.js';
6
6
  export declare class DuckDBRecordBatch extends DuckDBData {
@@ -1,4 +1,4 @@
1
- import { DuckDBType } from '@motherduck/duckdb-types';
1
+ import { DuckDBType } from '../../motherduck/duckdb-types';
2
2
  import { DataType, Type } from 'apache-arrow';
3
3
  import { TypedTypeMap } from './TypedTypeMap.js';
4
- export declare function duckDBTypeFromArrowType(type: DataType<Type, TypedTypeMap>): DuckDBType;
4
+ export declare function duckDBTypeFromArrowType(type: DataType<Type, TypedTypeMap>, metadata?: Map<string, string>): DuckDBType;
@@ -1,8 +1,8 @@
1
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
2
2
  import { Data, DataType, Type } from 'apache-arrow';
3
3
  import { TypedTypeMap } from './TypedTypeMap.js';
4
4
  type ArrowDataType = DataType<Type, TypedTypeMap>;
5
5
  type ArrowData = Data<ArrowDataType>;
6
- export declare function duckDBValueFromArrowData(data: ArrowData, rowIndex: number): DuckDBValue;
7
- export declare function duckDBValuesFromArrowData(data: ArrowData, begin: number, end: number): readonly DuckDBValue[];
6
+ export declare function duckDBValueFromArrowData(data: ArrowData, rowIndex: number, metadata?: Map<string, string>): DuckDBValue;
7
+ export declare function duckDBValuesFromArrowData(data: ArrowData, begin: number, end: number, metadata?: Map<string, string>): readonly DuckDBValue[];
8
8
  export {};
@@ -1,5 +1,5 @@
1
- import { DuckDBType } from '@motherduck/duckdb-types';
2
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBType } from '../../motherduck/duckdb-types';
2
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
3
3
  import { DuckDBRow } from './DuckDBRow.js';
4
4
  /**
5
5
  * A two-dimensional table of data along with column metadata.
@@ -1,5 +1,5 @@
1
- import { DuckDBType } from '@motherduck/duckdb-types';
2
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBType } from '../../motherduck/duckdb-types';
2
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
3
3
  import { AsyncDuckDBDataBatchIterator } from './AsyncDuckDBDataBatchIterator.js';
4
4
  import { DuckDBData } from './DuckDBData.js';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
2
2
  export interface DuckDBRow {
3
3
  readonly [columnName: string]: DuckDBValue;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { DuckDBType } from '@motherduck/duckdb-types';
2
- import { DuckDBValue } from '@motherduck/duckdb-values';
1
+ import { DuckDBType } from '../../motherduck/duckdb-types';
2
+ import { DuckDBValue } from '../../motherduck/duckdb-values';
3
3
  import { DuckDBData } from './DuckDBData.js';
4
4
  export declare class MemoryDuckDBData extends DuckDBData {
5
5
  private columns;
@@ -46,6 +46,9 @@ export type IntegerDuckDBType = {
46
46
  export type IntervalDuckDBType = {
47
47
  readonly name: 'INTERVAL';
48
48
  };
49
+ export type JSONDuckDBType = {
50
+ readonly name: 'JSON';
51
+ };
49
52
  export type ListDuckDBType = {
50
53
  readonly name: 'LIST';
51
54
  readonly valueType: DuckDBType;
@@ -95,6 +98,9 @@ export type TinyIntDuckDBType = {
95
98
  export type UBigIntDuckDBType = {
96
99
  readonly name: 'UBIGINT';
97
100
  };
101
+ export type UHugeIntDuckDBType = {
102
+ readonly name: 'UHUGEINT';
103
+ };
98
104
  export type UIntegerDuckDBType = {
99
105
  readonly name: 'UINTEGER';
100
106
  };
@@ -121,4 +127,4 @@ export type GeometryDuckDBType = {
121
127
  export type WKBBlobDuckDBType = {
122
128
  readonly name: 'WKB_BLOB';
123
129
  };
124
- export type DuckDBType = ArrayDuckDBType | BigIntDuckDBType | BitDuckDBType | BooleanDuckDBType | BlobDuckDBType | DateDuckDBType | DoubleDuckDBType | DecimalDuckDBType | EnumDuckDBType | HugeIntDuckDBType | IntegerDuckDBType | IntervalDuckDBType | ListDuckDBType | MapDuckDBType | RealDuckDBType | SmallIntDuckDBType | SQLNullDuckDBType | StructDuckDBType | TimeDuckDBType | TimeWithTimeZoneDuckDBType | TimestampDuckDBType | TimestampSecondsDuckDBType | TimestampMillisecondsDuckDBType | TimestampNanosecondsDuckDBType | TimestampWithTimeZoneDuckDBType | TinyIntDuckDBType | UBigIntDuckDBType | UIntegerDuckDBType | USmallIntDuckDBType | UTinyIntDuckDBType | UUIDDuckDBType | UnionDuckDBType | VarCharDuckDBType | GeometryDuckDBType | WKBBlobDuckDBType;
130
+ export type DuckDBType = ArrayDuckDBType | BigIntDuckDBType | BitDuckDBType | BooleanDuckDBType | BlobDuckDBType | DateDuckDBType | DoubleDuckDBType | DecimalDuckDBType | EnumDuckDBType | HugeIntDuckDBType | IntegerDuckDBType | IntervalDuckDBType | JSONDuckDBType | ListDuckDBType | MapDuckDBType | RealDuckDBType | SmallIntDuckDBType | SQLNullDuckDBType | StructDuckDBType | TimeDuckDBType | TimeWithTimeZoneDuckDBType | TimestampDuckDBType | TimestampSecondsDuckDBType | TimestampMillisecondsDuckDBType | TimestampNanosecondsDuckDBType | TimestampWithTimeZoneDuckDBType | TinyIntDuckDBType | UBigIntDuckDBType | UHugeIntDuckDBType | UIntegerDuckDBType | USmallIntDuckDBType | UTinyIntDuckDBType | UUIDDuckDBType | UnionDuckDBType | VarCharDuckDBType | GeometryDuckDBType | WKBBlobDuckDBType;
@@ -1,4 +1,4 @@
1
- import { ArrayDuckDBType, BigIntDuckDBType, BitDuckDBType, BlobDuckDBType, BooleanDuckDBType, DateDuckDBType, DecimalDuckDBType, DoubleDuckDBType, DuckDBType, EnumDuckDBType, GeometryDuckDBType, HugeIntDuckDBType, IntegerDuckDBType, IntervalDuckDBType, ListDuckDBType, MapDuckDBType, RealDuckDBType, SQLNullDuckDBType, SmallIntDuckDBType, StructDuckDBType, StructEntry, TimeDuckDBType, TimeWithTimeZoneDuckDBType, TimestampDuckDBType, TimestampMillisecondsDuckDBType, TimestampNanosecondsDuckDBType, TimestampSecondsDuckDBType, TimestampWithTimeZoneDuckDBType, TinyIntDuckDBType, UBigIntDuckDBType, UIntegerDuckDBType, USmallIntDuckDBType, UTinyIntDuckDBType, UUIDDuckDBType, UnionAlternative, UnionDuckDBType, VarCharDuckDBType, WKBBlobDuckDBType } from './DuckDBType.js';
1
+ import { ArrayDuckDBType, BigIntDuckDBType, BitDuckDBType, BlobDuckDBType, BooleanDuckDBType, DateDuckDBType, DecimalDuckDBType, DoubleDuckDBType, DuckDBType, EnumDuckDBType, GeometryDuckDBType, HugeIntDuckDBType, IntegerDuckDBType, IntervalDuckDBType, JSONDuckDBType, ListDuckDBType, MapDuckDBType, RealDuckDBType, SQLNullDuckDBType, SmallIntDuckDBType, StructDuckDBType, StructEntry, TimeDuckDBType, TimeWithTimeZoneDuckDBType, TimestampDuckDBType, TimestampMillisecondsDuckDBType, TimestampNanosecondsDuckDBType, TimestampSecondsDuckDBType, TimestampWithTimeZoneDuckDBType, TinyIntDuckDBType, UBigIntDuckDBType, UHugeIntDuckDBType, UIntegerDuckDBType, USmallIntDuckDBType, UTinyIntDuckDBType, UUIDDuckDBType, UnionAlternative, UnionDuckDBType, VarCharDuckDBType, WKBBlobDuckDBType } from './DuckDBType.js';
2
2
  export declare class DuckDBTypes {
3
3
  private constructor();
4
4
  static ARRAY(valueType: DuckDBType, length: number): ArrayDuckDBType;
@@ -15,6 +15,7 @@ export declare class DuckDBTypes {
15
15
  static HUGEINT: HugeIntDuckDBType;
16
16
  static INTEGER: IntegerDuckDBType;
17
17
  static INTERVAL: IntervalDuckDBType;
18
+ static JSON: JSONDuckDBType;
18
19
  static LIST(valueType: DuckDBType): ListDuckDBType;
19
20
  static MAP(keyType: DuckDBType, valueType: DuckDBType): MapDuckDBType;
20
21
  static REAL: RealDuckDBType;
@@ -31,6 +32,7 @@ export declare class DuckDBTypes {
31
32
  static TIMESTAMP_TZ: TimestampWithTimeZoneDuckDBType;
32
33
  static TINYINT: TinyIntDuckDBType;
33
34
  static UBIGINT: UBigIntDuckDBType;
35
+ static UHUGEINT: UHugeIntDuckDBType;
34
36
  static UINTEGER: UIntegerDuckDBType;
35
37
  static USMALLINT: USmallIntDuckDBType;
36
38
  static UTINYINT: UTinyIntDuckDBType;
@@ -0,0 +1,2 @@
1
+ import { DuckDBType } from './DuckDBType.js';
2
+ export declare function duckDBTypeToString(type: DuckDBType): string;
@@ -1,3 +1,4 @@
1
1
  export * from './DuckDBType.js';
2
2
  export { DuckDBTypes } from './DuckDBTypes.js';
3
+ export { duckDBTypeToString } from './duckDBTypeToString.js';
3
4
  export { parseLogicalTypeString } from './parseLogicalTypeString.js';
@@ -4,4 +4,5 @@ export declare class DuckDBArray extends SpecialDuckDBValue {
4
4
  readonly values: readonly DuckDBValue[];
5
5
  constructor(values: readonly DuckDBValue[]);
6
6
  toDuckDBString(): string;
7
+ toJS(): any[];
7
8
  }
@@ -3,4 +3,5 @@ export declare class DuckDBBlob extends SpecialDuckDBValue {
3
3
  readonly bytes: Uint8Array;
4
4
  constructor(bytes: Uint8Array);
5
5
  toDuckDBString(): string;
6
+ toJS(): Uint8Array;
6
7
  }
@@ -3,4 +3,5 @@ export declare class DuckDBDate extends SpecialDuckDBValue {
3
3
  readonly days: number;
4
4
  constructor(days: number);
5
5
  toDuckDBString(): string;
6
+ toJS(): string;
6
7
  }
@@ -7,4 +7,5 @@ export declare class DuckDBDecimal extends SpecialDuckDBValue {
7
7
  toDuckDBString(): string;
8
8
  /** Returns a string representation appropriate to the host environment's current locale. */
9
9
  toLocaleString(locales?: string | string[], options?: DuckDBDecimalFormatOptions): string;
10
+ toJS(): string;
10
11
  }
@@ -5,4 +5,5 @@ export declare class DuckDBInterval extends SpecialDuckDBValue {
5
5
  readonly microseconds: bigint;
6
6
  constructor(months: number, days: number, microseconds: bigint);
7
7
  toDuckDBString(): string;
8
+ toJS(): string;
8
9
  }
@@ -4,4 +4,5 @@ export declare class DuckDBList extends SpecialDuckDBValue {
4
4
  readonly values: readonly DuckDBValue[];
5
5
  constructor(values: readonly DuckDBValue[]);
6
6
  toDuckDBString(): string;
7
+ toJS(): any[];
7
8
  }
@@ -4,4 +4,5 @@ export declare class DuckDBMap extends SpecialDuckDBValue {
4
4
  readonly entries: readonly DuckDBMapEntry[];
5
5
  constructor(entries: readonly DuckDBMapEntry[]);
6
6
  toDuckDBString(): string;
7
+ toJS(): Record<string, any>;
7
8
  }
@@ -4,4 +4,5 @@ export declare class DuckDBStruct extends SpecialDuckDBValue {
4
4
  readonly entries: readonly DuckDBStructEntry[];
5
5
  constructor(entries: readonly DuckDBStructEntry[]);
6
6
  toDuckDBString(): string;
7
+ toJS(): Record<string, any>;
7
8
  }
@@ -3,4 +3,5 @@ export declare class DuckDBTime extends SpecialDuckDBValue {
3
3
  readonly microseconds: bigint;
4
4
  constructor(microseconds: bigint);
5
5
  toDuckDBString(): string;
6
+ toJS(): string;
6
7
  }
@@ -4,5 +4,6 @@ export declare class DuckDBTimestampMicroseconds extends SpecialDuckDBValue {
4
4
  readonly timezone: string | null | undefined;
5
5
  constructor(microseconds: bigint, timezone?: string | null);
6
6
  toDuckDBString(): string;
7
+ toJS(): string;
7
8
  }
8
9
  export type DuckDBTimestamp = DuckDBTimestampMicroseconds;
@@ -3,4 +3,5 @@ export declare class DuckDBTimestampMilliseconds extends SpecialDuckDBValue {
3
3
  readonly milliseconds: bigint;
4
4
  constructor(milliseconds: bigint);
5
5
  toDuckDBString(): string;
6
+ toJS(): string;
6
7
  }
@@ -3,4 +3,5 @@ export declare class DuckDBTimestampNanoseconds extends SpecialDuckDBValue {
3
3
  readonly nanoseconds: bigint;
4
4
  constructor(nanoseconds: bigint);
5
5
  toDuckDBString(): string;
6
+ toJS(): string;
6
7
  }
@@ -3,4 +3,5 @@ export declare class DuckDBTimestampSeconds extends SpecialDuckDBValue {
3
3
  readonly seconds: bigint;
4
4
  constructor(seconds: bigint);
5
5
  toDuckDBString(): string;
6
+ toJS(): string;
6
7
  }
@@ -0,0 +1,7 @@
1
+ import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
2
+ export declare class DuckDBUUID extends SpecialDuckDBValue {
3
+ readonly bytes: Uint8Array;
4
+ constructor(bytes: Uint8Array);
5
+ toDuckDBString(): string;
6
+ toJS(): string;
7
+ }
@@ -1,2 +1,3 @@
1
1
  import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
2
2
  export type DuckDBValue = null | boolean | number | string | bigint | SpecialDuckDBValue;
3
+ export declare function duckDBValueToJS(value: DuckDBValue): any;
@@ -1,4 +1,5 @@
1
1
  export declare abstract class SpecialDuckDBValue {
2
2
  abstract toDuckDBString(): string;
3
3
  toString(): string;
4
+ abstract toJS(): any;
4
5
  }
@@ -0,0 +1 @@
1
+ export declare function hexFromBlob(blob: Uint8Array, start: number | undefined, end: number | undefined): string;
@@ -14,4 +14,5 @@ export { DuckDBTimestampMilliseconds } from './DuckDBTimestampMilliseconds.js';
14
14
  export { DuckDBTimestampNanoseconds } from './DuckDBTimestampNanoseconds.js';
15
15
  export { DuckDBTimestampSeconds } from './DuckDBTimestampSeconds.js';
16
16
  export { DuckDBValue } from './DuckDBValue.js';
17
+ export { DuckDBUUID } from './DuckDBUUID.js';
17
18
  export { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
@@ -1,4 +1,4 @@
1
- import { AsyncDuckDB } from '@duckdb/duckdb-wasm';
1
+ import { AsyncDuckDB } from '../../duckdb-wasm';
2
2
  import { MotherDuckLogLevel } from './MotherDuckLogLevel.js';
3
3
  export interface LoadMotherDuckWasmExtensionOptions {
4
4
  /**
@@ -35,4 +35,8 @@ export interface LoadMotherDuckWasmExtensionOptions {
35
35
  * Defaults to MotherDuckLogLevel.INFO.
36
36
  */
37
37
  logLevel?: MotherDuckLogLevel;
38
+ /**
39
+ * Skip the "welcome pack", the first message exchange between the MotherDuck client and server.
40
+ */
41
+ skipWelcomePack?: boolean;
38
42
  }
@@ -0,0 +1 @@
1
+ export declare function fetchMotherDuckWasmExtensionVersion(extensionRepositoryUrlPrefix: URL): Promise<string>;
@@ -1,3 +1,4 @@
1
+ export * from './fetchMotherDuckWasmExtensionVersion.js';
1
2
  export * from './loadMotherDuckWasmExtension.js';
2
3
  export * from './LoadMotherDuckWasmExtensionOptions.js';
3
4
  export * from './MotherDuckEvent.js';
@@ -1,2 +1,2 @@
1
- import { AsyncDuckDBConnection } from '@duckdb/duckdb-wasm';
1
+ import { AsyncDuckDBConnection } from '../../duckdb-wasm';
2
2
  export declare function untilWorkerReady(connection: AsyncDuckDBConnection): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { DuckDBBundles } from './duckdb-wasm';
2
+ export declare function prefixDuckDBBundles(prefix: string, bundles: DuckDBBundles, includeCOI: boolean | undefined): DuckDBBundles;
@@ -1,9 +1,9 @@
1
- import { WebFile } from '@duckdb/duckdb-wasm';
1
+ import { WebFile } from './duckdb-wasm';
2
2
  import { MDConnectionParams } from './MDConnectionParams';
3
+ export { WebFile };
3
4
  /**
4
5
  * Read local data files from wasm db
5
6
  *
6
7
  * @returns Local data files list.
7
8
  */
8
9
  export declare function readLocalFS(params: MDConnectionParams): Promise<WebFile[]>;
9
- export { WebFile };