@motherduck/wasm-client 0.6.0 → 0.6.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motherduck/wasm-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Client library for MotherDuck-enabled DuckDB powered by WebAssembly (WASM)",
|
|
5
5
|
"browser": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"apache-arrow": "^
|
|
18
|
+
"apache-arrow": "^15.0.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {}
|
|
21
21
|
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
export type StructEntry = {
|
|
2
|
-
readonly key: string;
|
|
3
|
-
readonly valueType: DuckDBType;
|
|
4
|
-
};
|
|
5
|
-
export type UnionAlternative = {
|
|
6
|
-
readonly tag: string;
|
|
7
|
-
readonly valueType: DuckDBType;
|
|
8
|
-
};
|
|
9
|
-
export type BigIntDuckDBType = {
|
|
10
|
-
readonly name: 'BIGINT';
|
|
11
|
-
};
|
|
12
|
-
export type BitDuckDBType = {
|
|
13
|
-
readonly name: 'BIT';
|
|
14
|
-
};
|
|
15
|
-
export type BooleanDuckDBType = {
|
|
16
|
-
readonly name: 'BOOLEAN';
|
|
17
|
-
};
|
|
18
|
-
export type BlobDuckDBType = {
|
|
19
|
-
readonly name: 'BLOB';
|
|
20
|
-
};
|
|
21
|
-
export type DateDuckDBType = {
|
|
22
|
-
readonly name: 'DATE';
|
|
23
|
-
};
|
|
24
|
-
export type DoubleDuckDBType = {
|
|
25
|
-
readonly name: 'DOUBLE';
|
|
26
|
-
};
|
|
27
|
-
export type DecimalDuckDBType = {
|
|
28
|
-
readonly name: 'DECIMAL';
|
|
29
|
-
readonly width?: number;
|
|
30
|
-
readonly scale?: number;
|
|
31
|
-
};
|
|
32
|
-
export type EnumDuckDBType = {
|
|
33
|
-
readonly name: 'ENUM';
|
|
34
|
-
};
|
|
35
|
-
export type HugeIntDuckDBType = {
|
|
36
|
-
readonly name: 'HUGEINT';
|
|
37
|
-
};
|
|
38
|
-
export type IntegerDuckDBType = {
|
|
39
|
-
readonly name: 'INTEGER';
|
|
40
|
-
};
|
|
41
|
-
export type IntervalDuckDBType = {
|
|
42
|
-
readonly name: 'INTERVAL';
|
|
43
|
-
};
|
|
44
|
-
export type ListDuckDBType = {
|
|
45
|
-
readonly name: 'LIST';
|
|
46
|
-
readonly valueType: DuckDBType;
|
|
47
|
-
};
|
|
48
|
-
export type MapDuckDBType = {
|
|
49
|
-
readonly name: 'MAP';
|
|
50
|
-
readonly keyType: DuckDBType;
|
|
51
|
-
readonly valueType: DuckDBType;
|
|
52
|
-
};
|
|
53
|
-
export type RealDuckDBType = {
|
|
54
|
-
readonly name: 'REAL';
|
|
55
|
-
};
|
|
56
|
-
export type SmallIntDuckDBType = {
|
|
57
|
-
readonly name: 'SMALLINT';
|
|
58
|
-
};
|
|
59
|
-
export type SQLNullDuckDBType = {
|
|
60
|
-
readonly name: 'SQLNULL';
|
|
61
|
-
};
|
|
62
|
-
export type StructDuckDBType = {
|
|
63
|
-
readonly name: 'STRUCT';
|
|
64
|
-
readonly entries: readonly StructEntry[];
|
|
65
|
-
};
|
|
66
|
-
export type TimeDuckDBType = {
|
|
67
|
-
readonly name: 'TIME';
|
|
68
|
-
};
|
|
69
|
-
export type TimestampDuckDBType = {
|
|
70
|
-
readonly name: 'TIMESTAMP';
|
|
71
|
-
};
|
|
72
|
-
export type TimestampSecondsDuckDBType = {
|
|
73
|
-
readonly name: 'TIMESTAMP_S';
|
|
74
|
-
};
|
|
75
|
-
export type TimestampMillisecondsDuckDBType = {
|
|
76
|
-
readonly name: 'TIMESTAMP_MS';
|
|
77
|
-
};
|
|
78
|
-
export type TimestampNanosecondsDuckDBType = {
|
|
79
|
-
readonly name: 'TIMESTAMP_NS';
|
|
80
|
-
};
|
|
81
|
-
export type TimestampWithTimeZoneDuckDBType = {
|
|
82
|
-
readonly name: 'TIMESTAMP_TZ';
|
|
83
|
-
};
|
|
84
|
-
export type TinyIntDuckDBType = {
|
|
85
|
-
readonly name: 'TINYINT';
|
|
86
|
-
};
|
|
87
|
-
export type UBigIntDuckDBType = {
|
|
88
|
-
readonly name: 'UBIGINT';
|
|
89
|
-
};
|
|
90
|
-
export type UIntegerDuckDBType = {
|
|
91
|
-
readonly name: 'UINTEGER';
|
|
92
|
-
};
|
|
93
|
-
export type USmallIntDuckDBType = {
|
|
94
|
-
readonly name: 'USMALLINT';
|
|
95
|
-
};
|
|
96
|
-
export type UTinyIntDuckDBType = {
|
|
97
|
-
readonly name: 'UTINYINT';
|
|
98
|
-
};
|
|
99
|
-
export type UUIDDuckDBType = {
|
|
100
|
-
readonly name: 'UUID';
|
|
101
|
-
};
|
|
102
|
-
export type UnionDuckDBType = {
|
|
103
|
-
readonly name: 'UNION';
|
|
104
|
-
readonly alternatives: readonly UnionAlternative[];
|
|
105
|
-
};
|
|
106
|
-
export type VarCharDuckDBType = {
|
|
107
|
-
readonly name: 'VARCHAR';
|
|
108
|
-
readonly length?: number;
|
|
109
|
-
};
|
|
110
|
-
export type DuckDBType = BigIntDuckDBType | BitDuckDBType | BooleanDuckDBType | BlobDuckDBType | DateDuckDBType | DoubleDuckDBType | DecimalDuckDBType | EnumDuckDBType | HugeIntDuckDBType | IntegerDuckDBType | IntervalDuckDBType | ListDuckDBType | MapDuckDBType | RealDuckDBType | SmallIntDuckDBType | SQLNullDuckDBType | StructDuckDBType | TimeDuckDBType | TimestampDuckDBType | TimestampSecondsDuckDBType | TimestampMillisecondsDuckDBType | TimestampNanosecondsDuckDBType | TimestampWithTimeZoneDuckDBType | TinyIntDuckDBType | UBigIntDuckDBType | UIntegerDuckDBType | USmallIntDuckDBType | UTinyIntDuckDBType | UUIDDuckDBType | UnionDuckDBType | VarCharDuckDBType;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BigIntDuckDBType, BitDuckDBType, BlobDuckDBType, BooleanDuckDBType, DateDuckDBType, DecimalDuckDBType, DoubleDuckDBType, DuckDBType, EnumDuckDBType, HugeIntDuckDBType, IntegerDuckDBType, IntervalDuckDBType, ListDuckDBType, MapDuckDBType, RealDuckDBType, SQLNullDuckDBType, SmallIntDuckDBType, StructDuckDBType, StructEntry, TimeDuckDBType, TimestampDuckDBType, TimestampMillisecondsDuckDBType, TimestampNanosecondsDuckDBType, TimestampSecondsDuckDBType, TimestampWithTimeZoneDuckDBType, TinyIntDuckDBType, UBigIntDuckDBType, UIntegerDuckDBType, USmallIntDuckDBType, UTinyIntDuckDBType, UUIDDuckDBType, UnionAlternative, UnionDuckDBType, VarCharDuckDBType } from './DuckDBType';
|
|
2
|
-
export declare class DuckDBTypes {
|
|
3
|
-
private constructor();
|
|
4
|
-
static BIGINT: BigIntDuckDBType;
|
|
5
|
-
static BIT: BitDuckDBType;
|
|
6
|
-
static BOOLEAN: BooleanDuckDBType;
|
|
7
|
-
static BLOB: BlobDuckDBType;
|
|
8
|
-
static DATE: DateDuckDBType;
|
|
9
|
-
static DOUBLE: DoubleDuckDBType;
|
|
10
|
-
private static default_DECIMAL;
|
|
11
|
-
static DECIMAL(width?: number, scale?: number): DecimalDuckDBType;
|
|
12
|
-
static ENUM: EnumDuckDBType;
|
|
13
|
-
static HUGEINT: HugeIntDuckDBType;
|
|
14
|
-
static INTEGER: IntegerDuckDBType;
|
|
15
|
-
static INTERVAL: IntervalDuckDBType;
|
|
16
|
-
static LIST(valueType: DuckDBType): ListDuckDBType;
|
|
17
|
-
static MAP(keyType: DuckDBType, valueType: DuckDBType): MapDuckDBType;
|
|
18
|
-
static REAL: RealDuckDBType;
|
|
19
|
-
static SMALLINT: SmallIntDuckDBType;
|
|
20
|
-
static SQLNULL: SQLNullDuckDBType;
|
|
21
|
-
static STRUCT(entries: readonly StructEntry[]): StructDuckDBType;
|
|
22
|
-
static STRUCT_entry(key: string, valueType: DuckDBType): StructEntry;
|
|
23
|
-
static TIME: TimeDuckDBType;
|
|
24
|
-
static TIMESTAMP: TimestampDuckDBType;
|
|
25
|
-
static TIMESTAMP_S: TimestampSecondsDuckDBType;
|
|
26
|
-
static TIMESTAMP_MS: TimestampMillisecondsDuckDBType;
|
|
27
|
-
static TIMESTAMP_NS: TimestampNanosecondsDuckDBType;
|
|
28
|
-
static TIMESTAMP_TZ: TimestampWithTimeZoneDuckDBType;
|
|
29
|
-
static TINYINT: TinyIntDuckDBType;
|
|
30
|
-
static UBIGINT: UBigIntDuckDBType;
|
|
31
|
-
static UINTEGER: UIntegerDuckDBType;
|
|
32
|
-
static USMALLINT: USmallIntDuckDBType;
|
|
33
|
-
static UTINYINT: UTinyIntDuckDBType;
|
|
34
|
-
static UUID: UUIDDuckDBType;
|
|
35
|
-
static UNION(alternatives: readonly UnionAlternative[]): UnionDuckDBType;
|
|
36
|
-
static UNION_alternative(tag: string, valueType: DuckDBType): UnionAlternative;
|
|
37
|
-
static VARCHAR: VarCharDuckDBType;
|
|
38
|
-
static VARCHAR_withLength(length: number): VarCharDuckDBType;
|
|
39
|
-
}
|
package/types/observability.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface Logger {
|
|
2
|
-
debug(message: string, context?: any): void;
|
|
3
|
-
info(message: string, context?: any): void;
|
|
4
|
-
log(message: string, context?: any): void;
|
|
5
|
-
warn(message: string, context?: any): void;
|
|
6
|
-
error(message: string, context?: any): void;
|
|
7
|
-
userAction(name: string, context?: any): void;
|
|
8
|
-
appAction(name: string, context: any): void;
|
|
9
|
-
startSpan(name: string, context?: any): Span;
|
|
10
|
-
finishSpan(span: Span): void;
|
|
11
|
-
}
|
|
12
|
-
export declare class Span {
|
|
13
|
-
startTimeMs: number;
|
|
14
|
-
timeTakenMs: number;
|
|
15
|
-
name: string;
|
|
16
|
-
logger: Logger;
|
|
17
|
-
context: any;
|
|
18
|
-
spanId: string;
|
|
19
|
-
private internalError;
|
|
20
|
-
constructor(name: string, logger: Logger, context: any);
|
|
21
|
-
finish(): void;
|
|
22
|
-
setContextProperty(key: string, value: any): void;
|
|
23
|
-
get error(): Error | null;
|
|
24
|
-
set error(err: Error | null);
|
|
25
|
-
}
|
|
26
|
-
export declare function sanitize(queryText: string): string;
|