@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.
- package/README.md +1 -3
- package/index.js +1 -1
- package/index_with_arrow.js +9 -9
- package/package.json +2 -2
- package/types/DuckDBInstance.d.ts +1 -1
- package/types/MDConnection.d.ts +2 -7
- package/types/MDConnectionParams.d.ts +4 -3
- package/types/MaterializedQueryTask.d.ts +2 -2
- package/types/QueryTypes.d.ts +5 -1
- package/types/StreamingQueryTask.d.ts +2 -2
- package/types/createDuckDbConnection.d.ts +1 -1
- package/types/duckdb-wasm/bindings/bindings_base.d.ts +122 -0
- package/types/duckdb-wasm/bindings/bindings_browser_base.d.ts +19 -0
- package/types/duckdb-wasm/bindings/bindings_browser_coi.d.ts +12 -0
- package/types/duckdb-wasm/bindings/bindings_browser_eh.d.ts +12 -0
- package/types/duckdb-wasm/bindings/bindings_browser_mvp.d.ts +11 -0
- package/types/duckdb-wasm/bindings/bindings_interface.d.ts +41 -0
- package/types/duckdb-wasm/bindings/bindings_node_base.d.ts +23 -0
- package/types/duckdb-wasm/bindings/bindings_node_eh.d.ts +12 -0
- package/types/duckdb-wasm/bindings/bindings_node_mvp.d.ts +12 -0
- package/types/duckdb-wasm/bindings/config.d.ts +66 -0
- package/types/duckdb-wasm/bindings/connection.d.ts +74 -0
- package/types/duckdb-wasm/bindings/duckdb_module.d.ts +12 -0
- package/types/duckdb-wasm/bindings/file_stats.d.ts +36 -0
- package/types/duckdb-wasm/bindings/index.d.ts +11 -0
- package/types/duckdb-wasm/bindings/insert_options.d.ts +38 -0
- package/types/duckdb-wasm/bindings/progress.d.ts +9 -0
- package/types/duckdb-wasm/bindings/runtime.d.ts +83 -0
- package/types/duckdb-wasm/bindings/runtime_browser.d.ts +9 -0
- package/types/duckdb-wasm/bindings/runtime_node.d.ts +8 -0
- package/types/duckdb-wasm/bindings/tokens.d.ts +12 -0
- package/types/duckdb-wasm/bindings/udf_function.d.ts +14 -0
- package/types/duckdb-wasm/bindings/udf_runtime.d.ts +3 -0
- package/types/duckdb-wasm/bindings/web_file.d.ts +12 -0
- package/types/duckdb-wasm/index.d.ts +7 -0
- package/types/duckdb-wasm/index_docs.d.ts +1 -0
- package/types/duckdb-wasm/json_typedef.d.ts +17 -0
- package/types/duckdb-wasm/log.d.ts +54 -0
- package/types/duckdb-wasm/parallel/async_bindings.d.ts +122 -0
- package/types/duckdb-wasm/parallel/async_bindings_interface.d.ts +25 -0
- package/types/duckdb-wasm/parallel/async_connection.d.ts +75 -0
- package/types/duckdb-wasm/parallel/index.d.ts +5 -0
- package/types/duckdb-wasm/parallel/worker_dispatcher.d.ts +22 -0
- package/types/duckdb-wasm/parallel/worker_request.d.ts +99 -0
- package/types/duckdb-wasm/platform.d.ts +39 -0
- package/types/duckdb-wasm/status.d.ts +3 -0
- package/types/duckdb-wasm/targets/duckdb-browser-blocking.d.ts +12 -0
- package/types/duckdb-wasm/targets/duckdb-browser-coi.pthread.worker.d.ts +1 -0
- package/types/duckdb-wasm/targets/duckdb-browser-coi.worker.d.ts +2 -0
- package/types/duckdb-wasm/targets/duckdb-browser-eh.worker.d.ts +2 -0
- package/types/duckdb-wasm/targets/duckdb-browser-mvp.worker.d.ts +2 -0
- package/types/duckdb-wasm/targets/duckdb-node-blocking.d.ts +13 -0
- package/types/duckdb-wasm/targets/duckdb-node-eh.worker.d.ts +2 -0
- package/types/duckdb-wasm/targets/duckdb-node-mvp.worker.d.ts +2 -0
- package/types/duckdb-wasm/targets/duckdb.d.ts +9 -0
- package/types/duckdb-wasm/utils/binary_dump.d.ts +1 -0
- package/types/duckdb-wasm/utils/index.d.ts +2 -0
- package/types/duckdb-wasm/utils/s3_helper.d.ts +27 -0
- package/types/duckdb-wasm/version.d.ts +5 -0
- package/types/duckdb-wasm/worker.d.ts +1 -0
- package/types/fetchDuckDBBundlesFromDuckDBAssets.d.ts +2 -0
- package/types/getAsyncDuckDb.d.ts +2 -1
- package/types/index.d.ts +0 -1
- package/types/instantiateDB.d.ts +2 -1
- package/types/isDuckDBBundles.d.ts +2 -0
- package/types/motherduck/duckdb-arrow/AsyncDuckDBRecordBatchIterator.d.ts +1 -1
- package/types/motherduck/duckdb-arrow/DuckDBRecordBatch.d.ts +3 -3
- package/types/motherduck/duckdb-arrow/duckDBTypeFromArrowType.d.ts +2 -2
- package/types/motherduck/duckdb-arrow/duckDBValueFromArrowData.d.ts +3 -3
- package/types/motherduck/duckdb-data/DuckDBData.d.ts +2 -2
- package/types/motherduck/duckdb-data/DuckDBDataReader.d.ts +2 -2
- package/types/motherduck/duckdb-data/DuckDBRow.d.ts +1 -1
- package/types/motherduck/duckdb-data/MemoryDuckDBData.d.ts +2 -2
- package/types/motherduck/duckdb-types/DuckDBType.d.ts +7 -1
- package/types/motherduck/duckdb-types/DuckDBTypes.d.ts +3 -1
- package/types/motherduck/duckdb-types/duckDBTypeToString.d.ts +2 -0
- package/types/motherduck/duckdb-types/index.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBArray.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBBlob.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBDate.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBDecimal.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBInterval.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBList.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBMap.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBStruct.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBTime.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBTimestampMicroseconds.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBTimestampMilliseconds.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBTimestampNanoseconds.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBTimestampSeconds.d.ts +1 -0
- package/types/motherduck/duckdb-values/DuckDBUUID.d.ts +7 -0
- package/types/motherduck/duckdb-values/DuckDBValue.d.ts +1 -0
- package/types/motherduck/duckdb-values/SpecialDuckDBValue.d.ts +1 -0
- package/types/motherduck/duckdb-values/conversion/hexFromBlob.d.ts +1 -0
- package/types/motherduck/duckdb-values/index.d.ts +1 -0
- package/types/motherduck/wasm-extension/LoadMotherDuckWasmExtensionOptions.d.ts +5 -1
- package/types/motherduck/wasm-extension/fetchMotherDuckWasmExtensionVersion.d.ts +1 -0
- package/types/motherduck/wasm-extension/index.d.ts +1 -0
- package/types/motherduck/wasm-extension/untilWorkerReady.d.ts +1 -1
- package/types/prefixDuckDBBundles.d.ts +2 -0
- package/types/readLocalFS.d.ts +2 -2
- package/index.js.map +0 -7
- package/types/LogSink.d.ts +0 -6
- package/types/TaskSequencer.d.ts +0 -55
- package/types/extractWrappedErrorMessage.d.ts +0 -17
- package/types/fetchDuckDBAssets.d.ts +0 -17
- package/types/fetchVersion.d.ts +0 -1
- package/types/genConnectionId.d.ts +0 -1
- package/types/getDuckDBBundlesFromDuckDBAssets.d.ts +0 -2
- package/types/getErrorMessage.d.ts +0 -1
- package/types/recursivelyPrefix.d.ts +0 -1
- package/types/transformQueryError.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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,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 @@
|
|
|
1
|
+
export declare function createWorker(url: string): Promise<Worker>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { AsyncDuckDB } from '
|
|
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
package/types/instantiateDB.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { AsyncDuckDB } from './duckdb-wasm';
|
|
1
2
|
import { MDConnectionParams } from './MDConnectionParams';
|
|
2
|
-
export declare function instantiateDB(params: MDConnectionParams): Promise<
|
|
3
|
+
export declare function instantiateDB(params: MDConnectionParams): Promise<AsyncDuckDB>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RecordBatch } from 'apache-arrow';
|
|
2
|
-
import { AsyncDuckDBDataBatchIterator, DuckDBData, DuckDBDataBatchIteratorResult } from '
|
|
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 '
|
|
2
|
-
import { DuckDBType } from '
|
|
3
|
-
import { DuckDBValue } from '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
2
|
-
import { DuckDBValue } from '
|
|
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 '
|
|
2
|
-
import { DuckDBValue } from '
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { DuckDBType } from '
|
|
2
|
-
import { DuckDBValue } from '
|
|
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;
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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 '
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { AsyncDuckDBConnection } from '
|
|
1
|
+
import { AsyncDuckDBConnection } from '../../duckdb-wasm';
|
|
2
2
|
export declare function untilWorkerReady(connection: AsyncDuckDBConnection): Promise<void>;
|
package/types/readLocalFS.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WebFile } from '
|
|
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 };
|