@motherduck/wasm-client 0.6.5 → 0.7.0
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/index.js +1 -1
- package/index_with_arrow.js +8 -8
- package/package.json +1 -1
- package/types/@duckdb/data-reader/ColumnFilteredDuckDBData.d.ts +13 -0
- package/types/{motherduck/duckdb-data → @duckdb/data-reader}/DuckDBData.d.ts +2 -2
- package/types/{motherduck/duckdb-data → @duckdb/data-reader}/DuckDBDataReader.d.ts +2 -2
- package/types/{motherduck/duckdb-data → @duckdb/data-reader}/DuckDBRow.d.ts +1 -1
- package/types/{motherduck/duckdb-data → @duckdb/data-reader}/MemoryDuckDBData.d.ts +2 -2
- package/types/{motherduck/duckdb-data → @duckdb/data-reader}/index.d.ts +1 -0
- package/types/@duckdb/data-types/DuckDBType.d.ts +324 -0
- package/types/@duckdb/data-types/DuckDBTypeId.d.ts +41 -0
- package/types/@duckdb/data-types/extensionTypes.d.ts +12 -0
- package/types/@duckdb/data-types/index.d.ts +4 -0
- package/types/@duckdb/data-types/sql.d.ts +2 -0
- package/types/{motherduck/duckdb-values/DuckDBList.d.ts → @duckdb/data-values/DuckDBArrayValue.d.ts} +4 -2
- package/types/@duckdb/data-values/DuckDBBitValue.d.ts +19 -0
- package/types/{motherduck/duckdb-values/DuckDBBlob.d.ts → @duckdb/data-values/DuckDBBlobValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBDate.d.ts → @duckdb/data-values/DuckDBDateValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBDecimal.d.ts → @duckdb/data-values/DuckDBDecimalValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBInterval.d.ts → @duckdb/data-values/DuckDBIntervalValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBArray.d.ts → @duckdb/data-values/DuckDBListValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBMap.d.ts → @duckdb/data-values/DuckDBMapValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBStruct.d.ts → @duckdb/data-values/DuckDBStructValue.d.ts} +4 -2
- package/types/@duckdb/data-values/DuckDBTimeTZValue.d.ts +14 -0
- package/types/{motherduck/duckdb-values/DuckDBTime.d.ts → @duckdb/data-values/DuckDBTimeValue.d.ts} +4 -2
- package/types/@duckdb/data-values/DuckDBTimestampMicrosecondsValue.d.ts +10 -0
- package/types/{motherduck/duckdb-values/DuckDBTimestampMilliseconds.d.ts → @duckdb/data-values/DuckDBTimestampMillisecondsValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBTimestampNanoseconds.d.ts → @duckdb/data-values/DuckDBTimestampNanosecondsValue.d.ts} +4 -2
- package/types/{motherduck/duckdb-values/DuckDBTimestampSeconds.d.ts → @duckdb/data-values/DuckDBTimestampSecondsValue.d.ts} +4 -2
- package/types/@duckdb/data-values/DuckDBTimestampTZValue.d.ts +10 -0
- package/types/@duckdb/data-values/DuckDBToStringOptions.d.ts +3 -0
- package/types/@duckdb/data-values/DuckDBUUIDValue.d.ts +17 -0
- package/types/{motherduck/duckdb-values → @duckdb/data-values}/DuckDBValue.d.ts +0 -1
- package/types/@duckdb/data-values/Json.d.ts +3 -0
- package/types/@duckdb/data-values/SpecialDuckDBValue.d.ts +8 -0
- package/types/{motherduck/duckdb-values → @duckdb/data-values}/conversion/dateTimeStringConversion.d.ts +9 -5
- package/types/@duckdb/data-values/conversion/duckDBValueToSql.d.ts +3 -0
- package/types/@duckdb/data-values/conversion/getVarIntFromBytes.d.ts +12 -0
- package/types/@duckdb/data-values/conversion/jsonFromDuckDBValue.d.ts +3 -0
- package/types/@duckdb/data-values/index.d.ts +26 -0
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_base.d.ts +11 -3
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_interface.d.ts +8 -3
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/config.d.ts +25 -1
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/connection.d.ts +1 -1
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/duckdb_module.d.ts +2 -0
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/runtime.d.ts +18 -1
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/runtime_browser.d.ts +4 -0
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/log.d.ts +7 -0
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/async_bindings.d.ts +18 -3
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/async_bindings_interface.d.ts +4 -2
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/async_connection.d.ts +3 -3
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/worker_request.d.ts +8 -6
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/platform.d.ts +4 -4
- package/types/@duckdb/duckdb-wasm/status.d.ts +7 -0
- package/types/@duckdb/duckdb-wasm/utils/opfs_util.d.ts +4 -0
- package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/utils/s3_helper.d.ts +1 -1
- package/types/{motherduck → @motherduck}/duckdb-arrow/AsyncDuckDBRecordBatchIterator.d.ts +1 -1
- package/types/{motherduck → @motherduck}/duckdb-arrow/DuckDBRecordBatch.d.ts +3 -3
- package/types/{motherduck → @motherduck}/duckdb-arrow/duckDBTypeFromArrowType.d.ts +1 -1
- package/types/{motherduck → @motherduck}/duckdb-arrow/duckDBValueFromArrowData.d.ts +1 -1
- package/types/@motherduck/duckdb-arrow/index.d.ts +5 -0
- package/types/@motherduck/task-sequencer/ConsoleLike.d.ts +1 -0
- package/types/@motherduck/task-sequencer/TaskSequencer.d.ts +59 -0
- package/types/@motherduck/task-sequencer/index.d.ts +2 -0
- package/types/{motherduck → @motherduck}/wasm-extension/LoadMotherDuckWasmExtensionOptions.d.ts +7 -1
- package/types/{motherduck → @motherduck}/wasm-extension/untilWorkerReady.d.ts +1 -1
- package/types/DuckDBInstance.d.ts +1 -1
- package/types/MDConnection.d.ts +1 -1
- package/types/MDConnectionParams.d.ts +3 -1
- package/types/MaterializedQueryTask.d.ts +2 -2
- package/types/QueryTypes.d.ts +3 -3
- package/types/StreamingQueryTask.d.ts +2 -2
- package/types/createDuckDbConnection.d.ts +1 -1
- package/types/fetchDuckDBBundlesFromDuckDBAssets.d.ts +1 -1
- package/types/getAsyncDuckDb.d.ts +1 -1
- package/types/index.d.ts +4 -4
- package/types/instantiateDB.d.ts +1 -1
- package/types/isDuckDBBundles.d.ts +1 -1
- package/types/prefixDuckDBBundles.d.ts +1 -1
- package/types/readLocalFS.d.ts +2 -2
- package/types/duckdb-wasm/status.d.ts +0 -3
- package/types/motherduck/duckdb-arrow/index.d.ts +0 -2
- package/types/motherduck/duckdb-types/DuckDBType.d.ts +0 -130
- package/types/motherduck/duckdb-types/DuckDBTypes.d.ts +0 -45
- package/types/motherduck/duckdb-types/duckDBTypeToString.d.ts +0 -2
- package/types/motherduck/duckdb-types/index.d.ts +0 -4
- package/types/motherduck/duckdb-values/DuckDBTimestampMicroseconds.d.ts +0 -9
- package/types/motherduck/duckdb-values/DuckDBUUID.d.ts +0 -7
- package/types/motherduck/duckdb-values/SpecialDuckDBValue.d.ts +0 -5
- package/types/motherduck/duckdb-values/index.d.ts +0 -18
- /package/types/{motherduck/duckdb-data → @duckdb/data-reader}/AsyncDuckDBDataBatchIterator.d.ts +0 -0
- /package/types/{motherduck/duckdb-types → @duckdb/data-types}/parseLogicalTypeString.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/DuckDBMapEntry.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/DuckDBStructEntry.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/conversion/displayStringForDuckDBValue.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/conversion/hexFromBlob.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/conversion/stringFromBlob.d.ts +0 -0
- /package/types/{motherduck/duckdb-values → @duckdb/data-values}/conversion/stringFromDecimal.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_browser_base.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_browser_coi.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_browser_eh.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_browser_mvp.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_node_base.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_node_eh.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/bindings_node_mvp.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/file_stats.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/index.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/insert_options.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/progress.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/runtime_node.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/tokens.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/udf_function.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/udf_runtime.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/bindings/web_file.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/index.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/index_docs.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/json_typedef.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/index.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/parallel/worker_dispatcher.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-browser-blocking.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-browser-coi.pthread.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-browser-coi.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-browser-eh.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-browser-mvp.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-node-blocking.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-node-eh.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb-node-mvp.worker.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/targets/duckdb.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/utils/binary_dump.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/utils/index.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/version.d.ts +0 -0
- /package/types/{duckdb-wasm → @duckdb/duckdb-wasm}/worker.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/duckdb-arrow/TypedTypeMap.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/MDEvent.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/MotherDuckEvent.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/MotherDuckLogLevel.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/doesBrowserSupportWorkerInWorker.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/fetchMotherDuckWasmExtensionVersion.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/fetchVersion.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/getExtensionRepository.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/index.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/loadMotherDuckWasmExtension.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/motherDuckEventFromMessageEvent.d.ts +0 -0
- /package/types/{motherduck → @motherduck}/wasm-extension/pathConcat.d.ts +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DuckDBType } from '../../@duckdb/data-types';
|
|
2
|
+
import { DuckDBValue } from '../../@duckdb/data-values';
|
|
3
|
+
import { DuckDBData } from './DuckDBData.js';
|
|
4
|
+
export declare class ColumnFilteredDuckDBData extends DuckDBData {
|
|
5
|
+
private data;
|
|
6
|
+
private readonly inputColumnIndexForOutputColumnIndex;
|
|
7
|
+
constructor(data: DuckDBData, columnVisibility: readonly boolean[]);
|
|
8
|
+
get columnCount(): number;
|
|
9
|
+
get rowCount(): number;
|
|
10
|
+
columnName(columnIndex: number): string;
|
|
11
|
+
columnType(columnIndex: number): DuckDBType;
|
|
12
|
+
value(columnIndex: number, rowIndex: number): DuckDBValue;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DuckDBType } from '
|
|
2
|
-
import { DuckDBValue } from '
|
|
1
|
+
import { DuckDBType } from '../../@duckdb/data-types';
|
|
2
|
+
import { DuckDBValue } from '../../@duckdb/data-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 '../../@duckdb/data-types';
|
|
2
|
+
import { DuckDBValue } from '../../@duckdb/data-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 '../../@duckdb/data-types';
|
|
2
|
+
import { DuckDBValue } from '../../@duckdb/data-values';
|
|
3
3
|
import { DuckDBData } from './DuckDBData.js';
|
|
4
4
|
export declare class MemoryDuckDBData extends DuckDBData {
|
|
5
5
|
private columns;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { Json } from '../../@duckdb/data-values';
|
|
2
|
+
import { DuckDBTypeId } from './DuckDBTypeId.js';
|
|
3
|
+
export interface DuckDBTypeToStringOptions {
|
|
4
|
+
short?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class BaseDuckDBType<T extends DuckDBTypeId> {
|
|
7
|
+
readonly typeId: T;
|
|
8
|
+
readonly alias?: string;
|
|
9
|
+
protected constructor(typeId: T, alias?: string);
|
|
10
|
+
toString(_options?: DuckDBTypeToStringOptions): string;
|
|
11
|
+
toJson(): Json;
|
|
12
|
+
}
|
|
13
|
+
export declare class DuckDBBooleanType extends BaseDuckDBType<DuckDBTypeId.BOOLEAN> {
|
|
14
|
+
constructor(alias?: string);
|
|
15
|
+
static readonly instance: DuckDBBooleanType;
|
|
16
|
+
static create(alias?: string): DuckDBBooleanType;
|
|
17
|
+
}
|
|
18
|
+
export declare const BOOLEAN: DuckDBBooleanType;
|
|
19
|
+
export declare class DuckDBTinyIntType extends BaseDuckDBType<DuckDBTypeId.TINYINT> {
|
|
20
|
+
constructor(alias?: string);
|
|
21
|
+
static readonly instance: DuckDBTinyIntType;
|
|
22
|
+
static create(alias?: string): DuckDBTinyIntType;
|
|
23
|
+
static readonly Max: number;
|
|
24
|
+
static readonly Min: number;
|
|
25
|
+
get max(): number;
|
|
26
|
+
get min(): number;
|
|
27
|
+
}
|
|
28
|
+
export declare const TINYINT: DuckDBTinyIntType;
|
|
29
|
+
export declare class DuckDBSmallIntType extends BaseDuckDBType<DuckDBTypeId.SMALLINT> {
|
|
30
|
+
constructor(alias?: string);
|
|
31
|
+
static readonly instance: DuckDBSmallIntType;
|
|
32
|
+
static create(alias?: string): DuckDBSmallIntType;
|
|
33
|
+
static readonly Max: number;
|
|
34
|
+
static readonly Min: number;
|
|
35
|
+
get max(): number;
|
|
36
|
+
get min(): number;
|
|
37
|
+
}
|
|
38
|
+
export declare const SMALLINT: DuckDBSmallIntType;
|
|
39
|
+
export declare class DuckDBIntegerType extends BaseDuckDBType<DuckDBTypeId.INTEGER> {
|
|
40
|
+
constructor(alias?: string);
|
|
41
|
+
static readonly instance: DuckDBIntegerType;
|
|
42
|
+
static create(alias?: string): DuckDBIntegerType;
|
|
43
|
+
static readonly Max: number;
|
|
44
|
+
static readonly Min: number;
|
|
45
|
+
get max(): number;
|
|
46
|
+
get min(): number;
|
|
47
|
+
}
|
|
48
|
+
export declare const INTEGER: DuckDBIntegerType;
|
|
49
|
+
export declare class DuckDBBigIntType extends BaseDuckDBType<DuckDBTypeId.BIGINT> {
|
|
50
|
+
constructor(alias?: string);
|
|
51
|
+
static readonly instance: DuckDBBigIntType;
|
|
52
|
+
static create(alias?: string): DuckDBBigIntType;
|
|
53
|
+
static readonly Max: bigint;
|
|
54
|
+
static readonly Min: bigint;
|
|
55
|
+
get max(): bigint;
|
|
56
|
+
get min(): bigint;
|
|
57
|
+
}
|
|
58
|
+
export declare const BIGINT: DuckDBBigIntType;
|
|
59
|
+
export declare class DuckDBUTinyIntType extends BaseDuckDBType<DuckDBTypeId.UTINYINT> {
|
|
60
|
+
constructor(alias?: string);
|
|
61
|
+
static readonly instance: DuckDBUTinyIntType;
|
|
62
|
+
static create(alias?: string): DuckDBUTinyIntType;
|
|
63
|
+
static readonly Max: number;
|
|
64
|
+
static readonly Min = 0;
|
|
65
|
+
get max(): number;
|
|
66
|
+
get min(): number;
|
|
67
|
+
}
|
|
68
|
+
export declare const UTINYINT: DuckDBUTinyIntType;
|
|
69
|
+
export declare class DuckDBUSmallIntType extends BaseDuckDBType<DuckDBTypeId.USMALLINT> {
|
|
70
|
+
constructor(alias?: string);
|
|
71
|
+
static readonly instance: DuckDBUSmallIntType;
|
|
72
|
+
static create(alias?: string): DuckDBUSmallIntType;
|
|
73
|
+
static readonly Max: number;
|
|
74
|
+
static readonly Min = 0;
|
|
75
|
+
get max(): number;
|
|
76
|
+
get min(): number;
|
|
77
|
+
}
|
|
78
|
+
export declare const USMALLINT: DuckDBUSmallIntType;
|
|
79
|
+
export declare class DuckDBUIntegerType extends BaseDuckDBType<DuckDBTypeId.UINTEGER> {
|
|
80
|
+
constructor(alias?: string);
|
|
81
|
+
static readonly instance: DuckDBUIntegerType;
|
|
82
|
+
static create(alias?: string): DuckDBUIntegerType;
|
|
83
|
+
static readonly Max: number;
|
|
84
|
+
static readonly Min = 0;
|
|
85
|
+
get max(): number;
|
|
86
|
+
get min(): number;
|
|
87
|
+
}
|
|
88
|
+
export declare const UINTEGER: DuckDBUIntegerType;
|
|
89
|
+
export declare class DuckDBUBigIntType extends BaseDuckDBType<DuckDBTypeId.UBIGINT> {
|
|
90
|
+
constructor(alias?: string);
|
|
91
|
+
static readonly instance: DuckDBUBigIntType;
|
|
92
|
+
static create(alias?: string): DuckDBUBigIntType;
|
|
93
|
+
static readonly Max: bigint;
|
|
94
|
+
static readonly Min: bigint;
|
|
95
|
+
get max(): bigint;
|
|
96
|
+
get min(): bigint;
|
|
97
|
+
}
|
|
98
|
+
export declare const UBIGINT: DuckDBUBigIntType;
|
|
99
|
+
export declare class DuckDBFloatType extends BaseDuckDBType<DuckDBTypeId.FLOAT> {
|
|
100
|
+
constructor(alias?: string);
|
|
101
|
+
static readonly instance: DuckDBFloatType;
|
|
102
|
+
static create(alias?: string): DuckDBFloatType;
|
|
103
|
+
static readonly Max: number;
|
|
104
|
+
static readonly Min: number;
|
|
105
|
+
get max(): number;
|
|
106
|
+
get min(): number;
|
|
107
|
+
}
|
|
108
|
+
export declare const FLOAT: DuckDBFloatType;
|
|
109
|
+
export declare class DuckDBDoubleType extends BaseDuckDBType<DuckDBTypeId.DOUBLE> {
|
|
110
|
+
constructor(alias?: string);
|
|
111
|
+
static readonly instance: DuckDBDoubleType;
|
|
112
|
+
static create(alias?: string): DuckDBDoubleType;
|
|
113
|
+
static readonly Max: number;
|
|
114
|
+
static readonly Min: number;
|
|
115
|
+
get max(): number;
|
|
116
|
+
get min(): number;
|
|
117
|
+
}
|
|
118
|
+
export declare const DOUBLE: DuckDBDoubleType;
|
|
119
|
+
export declare class DuckDBTimestampType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP> {
|
|
120
|
+
constructor(alias?: string);
|
|
121
|
+
static readonly instance: DuckDBTimestampType;
|
|
122
|
+
static create(alias?: string): DuckDBTimestampType;
|
|
123
|
+
}
|
|
124
|
+
export declare const TIMESTAMP: DuckDBTimestampType;
|
|
125
|
+
export type DuckDBTimestampMicrosecondsType = DuckDBTimestampType;
|
|
126
|
+
export declare const DuckDBTimestampMicrosecondsType: typeof DuckDBTimestampType;
|
|
127
|
+
export declare class DuckDBDateType extends BaseDuckDBType<DuckDBTypeId.DATE> {
|
|
128
|
+
constructor(alias?: string);
|
|
129
|
+
static readonly instance: DuckDBDateType;
|
|
130
|
+
static create(alias?: string): DuckDBDateType;
|
|
131
|
+
}
|
|
132
|
+
export declare const DATE: DuckDBDateType;
|
|
133
|
+
export declare class DuckDBTimeType extends BaseDuckDBType<DuckDBTypeId.TIME> {
|
|
134
|
+
constructor(alias?: string);
|
|
135
|
+
static readonly instance: DuckDBTimeType;
|
|
136
|
+
static create(alias?: string): DuckDBTimeType;
|
|
137
|
+
}
|
|
138
|
+
export declare const TIME: DuckDBTimeType;
|
|
139
|
+
export declare class DuckDBIntervalType extends BaseDuckDBType<DuckDBTypeId.INTERVAL> {
|
|
140
|
+
constructor(alias?: string);
|
|
141
|
+
static readonly instance: DuckDBIntervalType;
|
|
142
|
+
static create(alias?: string): DuckDBIntervalType;
|
|
143
|
+
}
|
|
144
|
+
export declare const INTERVAL: DuckDBIntervalType;
|
|
145
|
+
export declare class DuckDBHugeIntType extends BaseDuckDBType<DuckDBTypeId.HUGEINT> {
|
|
146
|
+
constructor(alias?: string);
|
|
147
|
+
static readonly instance: DuckDBHugeIntType;
|
|
148
|
+
static create(alias?: string): DuckDBHugeIntType;
|
|
149
|
+
static readonly Max: bigint;
|
|
150
|
+
static readonly Min: bigint;
|
|
151
|
+
get max(): bigint;
|
|
152
|
+
get min(): bigint;
|
|
153
|
+
}
|
|
154
|
+
export declare const HUGEINT: DuckDBHugeIntType;
|
|
155
|
+
export declare class DuckDBUHugeIntType extends BaseDuckDBType<DuckDBTypeId.UHUGEINT> {
|
|
156
|
+
constructor(alias?: string);
|
|
157
|
+
static readonly instance: DuckDBUHugeIntType;
|
|
158
|
+
static create(alias?: string): DuckDBUHugeIntType;
|
|
159
|
+
static readonly Max: bigint;
|
|
160
|
+
static readonly Min: bigint;
|
|
161
|
+
get max(): bigint;
|
|
162
|
+
get min(): bigint;
|
|
163
|
+
}
|
|
164
|
+
export declare const UHUGEINT: DuckDBUHugeIntType;
|
|
165
|
+
export declare class DuckDBVarCharType extends BaseDuckDBType<DuckDBTypeId.VARCHAR> {
|
|
166
|
+
constructor(alias?: string);
|
|
167
|
+
static readonly instance: DuckDBVarCharType;
|
|
168
|
+
static create(alias?: string): DuckDBVarCharType;
|
|
169
|
+
}
|
|
170
|
+
export declare const VARCHAR: DuckDBVarCharType;
|
|
171
|
+
export declare class DuckDBBlobType extends BaseDuckDBType<DuckDBTypeId.BLOB> {
|
|
172
|
+
constructor(alias?: string);
|
|
173
|
+
static readonly instance: DuckDBBlobType;
|
|
174
|
+
static create(alias?: string): DuckDBBlobType;
|
|
175
|
+
}
|
|
176
|
+
export declare const BLOB: DuckDBBlobType;
|
|
177
|
+
export declare class DuckDBDecimalType extends BaseDuckDBType<DuckDBTypeId.DECIMAL> {
|
|
178
|
+
readonly width: number;
|
|
179
|
+
readonly scale: number;
|
|
180
|
+
constructor(width: number, scale: number, alias?: string);
|
|
181
|
+
toString(_options?: DuckDBTypeToStringOptions): string;
|
|
182
|
+
toJson(): Json;
|
|
183
|
+
static readonly default: DuckDBDecimalType;
|
|
184
|
+
}
|
|
185
|
+
export declare function DECIMAL(width?: number, scale?: number, alias?: string): DuckDBDecimalType;
|
|
186
|
+
export declare class DuckDBTimestampSecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_S> {
|
|
187
|
+
constructor(alias?: string);
|
|
188
|
+
static readonly instance: DuckDBTimestampSecondsType;
|
|
189
|
+
static create(alias?: string): DuckDBTimestampSecondsType;
|
|
190
|
+
}
|
|
191
|
+
export declare const TIMESTAMP_S: DuckDBTimestampSecondsType;
|
|
192
|
+
export declare class DuckDBTimestampMillisecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_MS> {
|
|
193
|
+
constructor(alias?: string);
|
|
194
|
+
static readonly instance: DuckDBTimestampMillisecondsType;
|
|
195
|
+
static create(alias?: string): DuckDBTimestampMillisecondsType;
|
|
196
|
+
}
|
|
197
|
+
export declare const TIMESTAMP_MS: DuckDBTimestampMillisecondsType;
|
|
198
|
+
export declare class DuckDBTimestampNanosecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_NS> {
|
|
199
|
+
constructor(alias?: string);
|
|
200
|
+
static readonly instance: DuckDBTimestampNanosecondsType;
|
|
201
|
+
static create(alias?: string): DuckDBTimestampNanosecondsType;
|
|
202
|
+
}
|
|
203
|
+
export declare const TIMESTAMP_NS: DuckDBTimestampNanosecondsType;
|
|
204
|
+
export declare class DuckDBEnumType extends BaseDuckDBType<DuckDBTypeId.ENUM> {
|
|
205
|
+
readonly values: readonly string[];
|
|
206
|
+
readonly valueIndexes: Readonly<Record<string, number>>;
|
|
207
|
+
readonly internalTypeId: DuckDBTypeId;
|
|
208
|
+
constructor(values: readonly string[], internalTypeId: DuckDBTypeId, alias?: string);
|
|
209
|
+
indexForValue(value: string): number;
|
|
210
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
211
|
+
toJson(): Json;
|
|
212
|
+
}
|
|
213
|
+
export declare function ENUM8(values: readonly string[], alias?: string): DuckDBEnumType;
|
|
214
|
+
export declare function ENUM16(values: readonly string[], alias?: string): DuckDBEnumType;
|
|
215
|
+
export declare function ENUM32(values: readonly string[], alias?: string): DuckDBEnumType;
|
|
216
|
+
export declare function ENUM(values: readonly string[], alias?: string): DuckDBEnumType;
|
|
217
|
+
export declare class DuckDBListType extends BaseDuckDBType<DuckDBTypeId.LIST> {
|
|
218
|
+
readonly valueType: DuckDBType;
|
|
219
|
+
constructor(valueType: DuckDBType, alias?: string);
|
|
220
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
221
|
+
toJson(): Json;
|
|
222
|
+
}
|
|
223
|
+
export declare function LIST(valueType: DuckDBType, alias?: string): DuckDBListType;
|
|
224
|
+
export declare class DuckDBStructType extends BaseDuckDBType<DuckDBTypeId.STRUCT> {
|
|
225
|
+
readonly entryNames: readonly string[];
|
|
226
|
+
readonly entryTypes: readonly DuckDBType[];
|
|
227
|
+
readonly entryIndexes: Readonly<Record<string, number>>;
|
|
228
|
+
constructor(entryNames: readonly string[], entryTypes: readonly DuckDBType[], alias?: string);
|
|
229
|
+
get entryCount(): number;
|
|
230
|
+
indexForEntry(entryName: string): number;
|
|
231
|
+
typeForEntry(entryName: string): DuckDBType;
|
|
232
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
233
|
+
toJson(): Json;
|
|
234
|
+
}
|
|
235
|
+
export declare function STRUCT(entries: Record<string, DuckDBType>, alias?: string): DuckDBStructType;
|
|
236
|
+
export declare class DuckDBMapType extends BaseDuckDBType<DuckDBTypeId.MAP> {
|
|
237
|
+
readonly keyType: DuckDBType;
|
|
238
|
+
readonly valueType: DuckDBType;
|
|
239
|
+
constructor(keyType: DuckDBType, valueType: DuckDBType, alias?: string);
|
|
240
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
241
|
+
toJson(): Json;
|
|
242
|
+
}
|
|
243
|
+
export declare function MAP(keyType: DuckDBType, valueType: DuckDBType, alias?: string): DuckDBMapType;
|
|
244
|
+
export declare class DuckDBArrayType extends BaseDuckDBType<DuckDBTypeId.ARRAY> {
|
|
245
|
+
readonly valueType: DuckDBType;
|
|
246
|
+
readonly length: number;
|
|
247
|
+
constructor(valueType: DuckDBType, length: number, alias?: string);
|
|
248
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
249
|
+
toJson(): Json;
|
|
250
|
+
}
|
|
251
|
+
export declare function ARRAY(valueType: DuckDBType, length: number, alias?: string): DuckDBArrayType;
|
|
252
|
+
export declare class DuckDBUUIDType extends BaseDuckDBType<DuckDBTypeId.UUID> {
|
|
253
|
+
constructor(alias?: string);
|
|
254
|
+
static readonly instance: DuckDBUUIDType;
|
|
255
|
+
static create(alias?: string): DuckDBUUIDType;
|
|
256
|
+
}
|
|
257
|
+
export declare const UUID: DuckDBUUIDType;
|
|
258
|
+
export declare class DuckDBUnionType extends BaseDuckDBType<DuckDBTypeId.UNION> {
|
|
259
|
+
readonly memberTags: readonly string[];
|
|
260
|
+
readonly tagMemberIndexes: Readonly<Record<string, number>>;
|
|
261
|
+
readonly memberTypes: readonly DuckDBType[];
|
|
262
|
+
constructor(memberTags: readonly string[], memberTypes: readonly DuckDBType[], alias?: string);
|
|
263
|
+
memberIndexForTag(tag: string): number;
|
|
264
|
+
memberTypeForTag(tag: string): DuckDBType;
|
|
265
|
+
get memberCount(): number;
|
|
266
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
267
|
+
toJson(): Json;
|
|
268
|
+
}
|
|
269
|
+
export declare function UNION(members: Record<string, DuckDBType>, alias?: string): DuckDBUnionType;
|
|
270
|
+
export declare class DuckDBBitType extends BaseDuckDBType<DuckDBTypeId.BIT> {
|
|
271
|
+
constructor(alias?: string);
|
|
272
|
+
static readonly instance: DuckDBBitType;
|
|
273
|
+
static create(alias?: string): DuckDBBitType;
|
|
274
|
+
}
|
|
275
|
+
export declare const BIT: DuckDBBitType;
|
|
276
|
+
export declare class DuckDBTimeTZType extends BaseDuckDBType<DuckDBTypeId.TIME_TZ> {
|
|
277
|
+
constructor(alias?: string);
|
|
278
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
279
|
+
static readonly instance: DuckDBTimeTZType;
|
|
280
|
+
static create(alias?: string): DuckDBTimeTZType;
|
|
281
|
+
}
|
|
282
|
+
export declare const TIMETZ: DuckDBTimeTZType;
|
|
283
|
+
export declare class DuckDBTimestampTZType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_TZ> {
|
|
284
|
+
constructor(alias?: string);
|
|
285
|
+
toString(options?: DuckDBTypeToStringOptions): string;
|
|
286
|
+
static readonly instance: DuckDBTimestampTZType;
|
|
287
|
+
static create(alias?: string): DuckDBTimestampTZType;
|
|
288
|
+
}
|
|
289
|
+
export declare const TIMESTAMPTZ: DuckDBTimestampTZType;
|
|
290
|
+
export declare class DuckDBAnyType extends BaseDuckDBType<DuckDBTypeId.ANY> {
|
|
291
|
+
constructor(alias?: string);
|
|
292
|
+
static readonly instance: DuckDBAnyType;
|
|
293
|
+
static create(alias?: string): DuckDBAnyType;
|
|
294
|
+
}
|
|
295
|
+
export declare const ANY: DuckDBAnyType;
|
|
296
|
+
export declare class DuckDBVarIntType extends BaseDuckDBType<DuckDBTypeId.VARINT> {
|
|
297
|
+
constructor(alias?: string);
|
|
298
|
+
static readonly instance: DuckDBVarIntType;
|
|
299
|
+
static create(alias?: string): DuckDBVarIntType;
|
|
300
|
+
static readonly Max: bigint;
|
|
301
|
+
static readonly Min: bigint;
|
|
302
|
+
get max(): bigint;
|
|
303
|
+
get min(): bigint;
|
|
304
|
+
}
|
|
305
|
+
export declare const VARINT: DuckDBVarIntType;
|
|
306
|
+
export declare class DuckDBSQLNullType extends BaseDuckDBType<DuckDBTypeId.SQLNULL> {
|
|
307
|
+
constructor(alias?: string);
|
|
308
|
+
static readonly instance: DuckDBSQLNullType;
|
|
309
|
+
static create(alias?: string): DuckDBSQLNullType;
|
|
310
|
+
}
|
|
311
|
+
export declare const SQLNULL: DuckDBSQLNullType;
|
|
312
|
+
export declare class DuckDBStringLiteralType extends BaseDuckDBType<DuckDBTypeId.STRING_LITERAL> {
|
|
313
|
+
constructor(alias?: string);
|
|
314
|
+
static readonly instance: DuckDBStringLiteralType;
|
|
315
|
+
static create(alias?: string): DuckDBStringLiteralType;
|
|
316
|
+
}
|
|
317
|
+
export declare const STRING_LITERAL: DuckDBStringLiteralType;
|
|
318
|
+
export declare class DuckDBIntegerLiteralType extends BaseDuckDBType<DuckDBTypeId.INTEGER_LITERAL> {
|
|
319
|
+
constructor(alias?: string);
|
|
320
|
+
static readonly instance: DuckDBIntegerLiteralType;
|
|
321
|
+
static create(alias?: string): DuckDBIntegerLiteralType;
|
|
322
|
+
}
|
|
323
|
+
export declare const INTEGER_LITERAL: DuckDBIntegerLiteralType;
|
|
324
|
+
export type DuckDBType = DuckDBBooleanType | DuckDBTinyIntType | DuckDBSmallIntType | DuckDBIntegerType | DuckDBBigIntType | DuckDBUTinyIntType | DuckDBUSmallIntType | DuckDBUIntegerType | DuckDBUBigIntType | DuckDBFloatType | DuckDBDoubleType | DuckDBTimestampType | DuckDBDateType | DuckDBTimeType | DuckDBIntervalType | DuckDBHugeIntType | DuckDBUHugeIntType | DuckDBVarCharType | DuckDBBlobType | DuckDBDecimalType | DuckDBTimestampSecondsType | DuckDBTimestampMillisecondsType | DuckDBTimestampNanosecondsType | DuckDBEnumType | DuckDBListType | DuckDBStructType | DuckDBMapType | DuckDBArrayType | DuckDBUUIDType | DuckDBUnionType | DuckDBBitType | DuckDBTimeTZType | DuckDBTimestampTZType | DuckDBAnyType | DuckDBVarIntType | DuckDBSQLNullType | DuckDBStringLiteralType | DuckDBIntegerLiteralType;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum DuckDBTypeId {
|
|
2
|
+
INVALID = 0,
|
|
3
|
+
BOOLEAN = 1,
|
|
4
|
+
TINYINT = 2,
|
|
5
|
+
SMALLINT = 3,
|
|
6
|
+
INTEGER = 4,
|
|
7
|
+
BIGINT = 5,
|
|
8
|
+
UTINYINT = 6,
|
|
9
|
+
USMALLINT = 7,
|
|
10
|
+
UINTEGER = 8,
|
|
11
|
+
UBIGINT = 9,
|
|
12
|
+
FLOAT = 10,
|
|
13
|
+
DOUBLE = 11,
|
|
14
|
+
TIMESTAMP = 12,
|
|
15
|
+
DATE = 13,
|
|
16
|
+
TIME = 14,
|
|
17
|
+
INTERVAL = 15,
|
|
18
|
+
HUGEINT = 16,
|
|
19
|
+
UHUGEINT = 32,
|
|
20
|
+
VARCHAR = 17,
|
|
21
|
+
BLOB = 18,
|
|
22
|
+
DECIMAL = 19,
|
|
23
|
+
TIMESTAMP_S = 20,
|
|
24
|
+
TIMESTAMP_MS = 21,
|
|
25
|
+
TIMESTAMP_NS = 22,
|
|
26
|
+
ENUM = 23,
|
|
27
|
+
LIST = 24,
|
|
28
|
+
STRUCT = 25,
|
|
29
|
+
MAP = 26,
|
|
30
|
+
ARRAY = 33,
|
|
31
|
+
UUID = 27,
|
|
32
|
+
UNION = 28,
|
|
33
|
+
BIT = 29,
|
|
34
|
+
TIME_TZ = 30,
|
|
35
|
+
TIMESTAMP_TZ = 31,
|
|
36
|
+
ANY = 34,
|
|
37
|
+
VARINT = 35,
|
|
38
|
+
SQLNULL = 36,
|
|
39
|
+
STRING_LITERAL = 37,
|
|
40
|
+
INTEGER_LITERAL = 38
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DuckDBBlobType, DuckDBVarCharType } from './DuckDBType.js';
|
|
2
|
+
export declare const INET: import("./DuckDBType.js").DuckDBStructType;
|
|
3
|
+
export declare const JSONType: DuckDBVarCharType;
|
|
4
|
+
export declare const BOX_2D: import("./DuckDBType.js").DuckDBStructType;
|
|
5
|
+
export declare const BOX_2DF: import("./DuckDBType.js").DuckDBStructType;
|
|
6
|
+
export declare const GEOMETRY: DuckDBBlobType;
|
|
7
|
+
export declare const LINESTRING_2D: import("./DuckDBType.js").DuckDBListType;
|
|
8
|
+
export declare const POINT_2D: import("./DuckDBType.js").DuckDBStructType;
|
|
9
|
+
export declare const POINT_3D: import("./DuckDBType.js").DuckDBStructType;
|
|
10
|
+
export declare const POINT_4D: import("./DuckDBType.js").DuckDBStructType;
|
|
11
|
+
export declare const POLYGON_2D: import("./DuckDBType.js").DuckDBListType;
|
|
12
|
+
export declare const WKB_BLOB: DuckDBBlobType;
|
package/types/{motherduck/duckdb-values/DuckDBList.d.ts → @duckdb/data-values/DuckDBArrayValue.d.ts}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DuckDBValue } from './DuckDBValue.js';
|
|
2
|
+
import { Json } from './Json.js';
|
|
2
3
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class DuckDBArrayValue extends SpecialDuckDBValue {
|
|
4
5
|
readonly values: readonly DuckDBValue[];
|
|
5
6
|
constructor(values: readonly DuckDBValue[]);
|
|
6
7
|
toDuckDBString(): string;
|
|
7
|
-
|
|
8
|
+
toSql(): string;
|
|
9
|
+
toJson(): Json;
|
|
8
10
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
2
|
+
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
+
export declare class DuckDBBitValue extends SpecialDuckDBValue {
|
|
4
|
+
readonly data: Uint8Array;
|
|
5
|
+
constructor(data: Uint8Array);
|
|
6
|
+
padding(): number;
|
|
7
|
+
get length(): number;
|
|
8
|
+
getBool(index: number): boolean;
|
|
9
|
+
toBools(): boolean[];
|
|
10
|
+
getBit(index: number): 0 | 1;
|
|
11
|
+
toBits(): number[];
|
|
12
|
+
toDuckDBString(): string;
|
|
13
|
+
toSql(): string;
|
|
14
|
+
toJson(): Json;
|
|
15
|
+
static fromString(str: string, on?: string): DuckDBBitValue;
|
|
16
|
+
static fromBits(bits: readonly number[], on?: number): DuckDBBitValue;
|
|
17
|
+
static fromBools(bools: readonly boolean[]): DuckDBBitValue;
|
|
18
|
+
static fromLengthAndPredicate(length: number, predicate: (index: number) => boolean): DuckDBBitValue;
|
|
19
|
+
}
|
package/types/{motherduck/duckdb-values/DuckDBBlob.d.ts → @duckdb/data-values/DuckDBBlobValue.d.ts}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBBlobValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly bytes: Uint8Array;
|
|
4
5
|
constructor(bytes: Uint8Array);
|
|
5
6
|
toDuckDBString(): string;
|
|
6
|
-
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
7
9
|
}
|
package/types/{motherduck/duckdb-values/DuckDBDate.d.ts → @duckdb/data-values/DuckDBDateValue.d.ts}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBDateValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly days: number;
|
|
4
5
|
constructor(days: number);
|
|
5
6
|
toDuckDBString(): string;
|
|
6
|
-
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
7
9
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DuckDBDecimalFormatOptions } from './conversion/stringFromDecimal.js';
|
|
2
|
+
import { Json } from './Json.js';
|
|
2
3
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class DuckDBDecimalValue extends SpecialDuckDBValue {
|
|
4
5
|
readonly scaledValue: bigint;
|
|
5
6
|
readonly scale: number;
|
|
6
7
|
constructor(scaledValue: bigint, scale: number);
|
|
7
8
|
toDuckDBString(): string;
|
|
9
|
+
toSql(): string;
|
|
8
10
|
/** Returns a string representation appropriate to the host environment's current locale. */
|
|
9
11
|
toLocaleString(locales?: string | string[], options?: DuckDBDecimalFormatOptions): string;
|
|
10
|
-
|
|
12
|
+
toJson(): Json;
|
|
11
13
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBIntervalValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly months: number;
|
|
4
5
|
readonly days: number;
|
|
5
6
|
readonly microseconds: bigint;
|
|
6
7
|
constructor(months: number, days: number, microseconds: bigint);
|
|
7
8
|
toDuckDBString(): string;
|
|
8
|
-
|
|
9
|
+
toSql(): string;
|
|
10
|
+
toJson(): Json;
|
|
9
11
|
}
|
package/types/{motherduck/duckdb-values/DuckDBArray.d.ts → @duckdb/data-values/DuckDBListValue.d.ts}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DuckDBValue } from './DuckDBValue.js';
|
|
2
|
+
import { Json } from './Json.js';
|
|
2
3
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class DuckDBListValue extends SpecialDuckDBValue {
|
|
4
5
|
readonly values: readonly DuckDBValue[];
|
|
5
6
|
constructor(values: readonly DuckDBValue[]);
|
|
6
7
|
toDuckDBString(): string;
|
|
7
|
-
|
|
8
|
+
toSql(): string;
|
|
9
|
+
toJson(): Json;
|
|
8
10
|
}
|
package/types/{motherduck/duckdb-values/DuckDBMap.d.ts → @duckdb/data-values/DuckDBMapValue.d.ts}
RENAMED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DuckDBMapEntry } from './DuckDBMapEntry.js';
|
|
2
|
+
import { Json } from './Json.js';
|
|
2
3
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class DuckDBMapValue extends SpecialDuckDBValue {
|
|
4
5
|
readonly entries: readonly DuckDBMapEntry[];
|
|
5
6
|
constructor(entries: readonly DuckDBMapEntry[]);
|
|
6
7
|
toDuckDBString(): string;
|
|
7
|
-
|
|
8
|
+
toSql(): string;
|
|
9
|
+
toJson(): Json;
|
|
8
10
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DuckDBStructEntry } from './DuckDBStructEntry.js';
|
|
2
|
+
import { Json } from './Json.js';
|
|
2
3
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class DuckDBStructValue extends SpecialDuckDBValue {
|
|
4
5
|
readonly entries: readonly DuckDBStructEntry[];
|
|
5
6
|
constructor(entries: readonly DuckDBStructEntry[]);
|
|
6
7
|
toDuckDBString(): string;
|
|
7
|
-
|
|
8
|
+
toSql(): string;
|
|
9
|
+
toJson(): Json;
|
|
8
10
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
2
|
+
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
+
export declare class DuckDBTimeTZValue extends SpecialDuckDBValue {
|
|
4
|
+
readonly micros: bigint;
|
|
5
|
+
readonly offset: number;
|
|
6
|
+
constructor(micros: bigint, offset: number);
|
|
7
|
+
toDuckDBString(): string;
|
|
8
|
+
toSql(): string;
|
|
9
|
+
toJson(): Json;
|
|
10
|
+
private static TimeBits;
|
|
11
|
+
private static OffsetBits;
|
|
12
|
+
private static MaxOffset;
|
|
13
|
+
static fromBits(bits: bigint): DuckDBTimeTZValue;
|
|
14
|
+
}
|
package/types/{motherduck/duckdb-values/DuckDBTime.d.ts → @duckdb/data-values/DuckDBTimeValue.d.ts}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBTimeValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly microseconds: bigint;
|
|
4
5
|
constructor(microseconds: bigint);
|
|
5
6
|
toDuckDBString(): string;
|
|
6
|
-
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
7
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
2
|
+
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
3
|
+
export declare class DuckDBTimestampMicrosecondsValue extends SpecialDuckDBValue {
|
|
4
|
+
readonly microseconds: bigint;
|
|
5
|
+
constructor(microseconds: bigint);
|
|
6
|
+
toDuckDBString(): string;
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
9
|
+
}
|
|
10
|
+
export type DuckDBTimestamp = DuckDBTimestampMicrosecondsValue;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBTimestampMillisecondsValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly milliseconds: bigint;
|
|
4
5
|
constructor(milliseconds: bigint);
|
|
5
6
|
toDuckDBString(): string;
|
|
6
|
-
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Json } from './Json.js';
|
|
1
2
|
import { SpecialDuckDBValue } from './SpecialDuckDBValue.js';
|
|
2
|
-
export declare class
|
|
3
|
+
export declare class DuckDBTimestampNanosecondsValue extends SpecialDuckDBValue {
|
|
3
4
|
readonly nanoseconds: bigint;
|
|
4
5
|
constructor(nanoseconds: bigint);
|
|
5
6
|
toDuckDBString(): string;
|
|
6
|
-
|
|
7
|
+
toSql(): string;
|
|
8
|
+
toJson(): Json;
|
|
7
9
|
}
|