@motherduck/wasm-client 0.6.3 → 0.6.4
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/package.json +1 -1
- package/types/DuckDBInstance.d.ts +1 -1
- package/types/MDConnection.d.ts +1 -1
- package/types/MaterializedQueryTask.d.ts +1 -1
- package/types/QueryTypes.d.ts +1 -1
- package/types/StreamingQueryTask.d.ts +1 -1
- 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 +62 -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/getAsyncDuckDb.d.ts +1 -1
- package/types/getDuckDBBundlesFromDuckDBAssets.d.ts +1 -1
- package/types/instantiateDB.d.ts +1 -1
- 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 +1 -1
- package/types/motherduck/duckdb-arrow/duckDBValueFromArrowData.d.ts +1 -1
- 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/wasm-extension/LoadMotherDuckWasmExtensionOptions.d.ts +1 -1
- package/types/motherduck/wasm-extension/untilWorkerReady.d.ts +1 -1
- package/types/readLocalFS.d.ts +1 -1
- package/index.js.map +0 -7
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
import { DuckDBBundles } from '
|
|
1
|
+
import { DuckDBBundles } from './duckdb-wasm';
|
|
2
2
|
export declare function getDuckDBBundlesFromDuckDBAssets(duckDBAssetsURLPrefix: string, version: string | undefined, includeCOI: boolean | undefined): Promise<DuckDBBundles>;
|
package/types/instantiateDB.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MDConnectionParams } from './MDConnectionParams';
|
|
2
|
-
export declare function instantiateDB(params: MDConnectionParams): Promise<import("
|
|
2
|
+
export declare function instantiateDB(params: MDConnectionParams): Promise<import("./duckdb-wasm").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
4
|
export declare function duckDBTypeFromArrowType(type: DataType<Type, TypedTypeMap>): DuckDBType;
|
|
@@ -1,4 +1,4 @@
|
|
|
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>;
|
|
@@ -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;
|
|
@@ -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