@duckdb/node-api 1.1.2-alpha.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.
@@ -0,0 +1,164 @@
1
+ import { DuckDBTypeId } from './DuckDBTypeId';
2
+ export declare abstract class BaseDuckDBType {
3
+ readonly typeId: DuckDBTypeId;
4
+ protected constructor(typeId: DuckDBTypeId);
5
+ }
6
+ export declare class DuckDBBooleanType extends BaseDuckDBType {
7
+ private constructor();
8
+ static readonly instance: DuckDBBooleanType;
9
+ }
10
+ export declare class DuckDBTinyIntType extends BaseDuckDBType {
11
+ private constructor();
12
+ static readonly instance: DuckDBTinyIntType;
13
+ }
14
+ export declare class DuckDBSmallIntType extends BaseDuckDBType {
15
+ private constructor();
16
+ static readonly instance: DuckDBSmallIntType;
17
+ }
18
+ export declare class DuckDBIntegerType extends BaseDuckDBType {
19
+ private constructor();
20
+ static readonly instance: DuckDBIntegerType;
21
+ }
22
+ export declare class DuckDBBigIntType extends BaseDuckDBType {
23
+ private constructor();
24
+ static readonly instance: DuckDBBigIntType;
25
+ }
26
+ export declare class DuckDBUTinyIntType extends BaseDuckDBType {
27
+ private constructor();
28
+ static readonly instance: DuckDBUTinyIntType;
29
+ }
30
+ export declare class DuckDBUSmallIntType extends BaseDuckDBType {
31
+ private constructor();
32
+ static readonly instance: DuckDBUSmallIntType;
33
+ }
34
+ export declare class DuckDBUIntegerType extends BaseDuckDBType {
35
+ private constructor();
36
+ static readonly instance: DuckDBUIntegerType;
37
+ }
38
+ export declare class DuckDBUBigIntType extends BaseDuckDBType {
39
+ private constructor();
40
+ static readonly instance: DuckDBUBigIntType;
41
+ }
42
+ export declare class DuckDBFloatType extends BaseDuckDBType {
43
+ private constructor();
44
+ static readonly instance: DuckDBFloatType;
45
+ }
46
+ export declare class DuckDBDoubleType extends BaseDuckDBType {
47
+ private constructor();
48
+ static readonly instance: DuckDBDoubleType;
49
+ }
50
+ export declare class DuckDBTimestampType extends BaseDuckDBType {
51
+ private constructor();
52
+ static readonly instance: DuckDBTimestampType;
53
+ }
54
+ export type DuckDBTimestampMicrosecondsType = DuckDBTimestampType;
55
+ export declare class DuckDBDateType extends BaseDuckDBType {
56
+ private constructor();
57
+ static readonly instance: DuckDBDateType;
58
+ }
59
+ export declare class DuckDBTimeType extends BaseDuckDBType {
60
+ private constructor();
61
+ static readonly instance: DuckDBTimeType;
62
+ }
63
+ export declare class DuckDBIntervalType extends BaseDuckDBType {
64
+ private constructor();
65
+ static readonly instance: DuckDBIntervalType;
66
+ }
67
+ export declare class DuckDBHugeIntType extends BaseDuckDBType {
68
+ private constructor();
69
+ static readonly instance: DuckDBHugeIntType;
70
+ }
71
+ export declare class DuckDBUHugeIntType extends BaseDuckDBType {
72
+ private constructor();
73
+ static readonly instance: DuckDBUHugeIntType;
74
+ }
75
+ export declare class DuckDBVarCharType extends BaseDuckDBType {
76
+ private constructor();
77
+ static readonly instance: DuckDBVarCharType;
78
+ }
79
+ export declare class DuckDBBlobType extends BaseDuckDBType {
80
+ private constructor();
81
+ static readonly instance: DuckDBBlobType;
82
+ }
83
+ export declare class DuckDBDecimalType extends BaseDuckDBType {
84
+ readonly width: number;
85
+ readonly scale: number;
86
+ constructor(width: number, scale: number);
87
+ static readonly default: DuckDBDecimalType;
88
+ }
89
+ export declare class DuckDBTimestampSecondsType extends BaseDuckDBType {
90
+ private constructor();
91
+ static readonly instance: DuckDBTimestampSecondsType;
92
+ }
93
+ export declare class DuckDBTimestampMillisecondsType extends BaseDuckDBType {
94
+ private constructor();
95
+ static readonly instance: DuckDBTimestampMillisecondsType;
96
+ }
97
+ export declare class DuckDBTimestampNanosecondsType extends BaseDuckDBType {
98
+ private constructor();
99
+ static readonly instance: DuckDBTimestampNanosecondsType;
100
+ }
101
+ export declare class DuckDBEnumType extends BaseDuckDBType {
102
+ readonly values: readonly string[];
103
+ readonly internalTypeId: DuckDBTypeId;
104
+ constructor(values: readonly string[], internalTypeId: DuckDBTypeId);
105
+ }
106
+ export declare class DuckDBListType extends BaseDuckDBType {
107
+ readonly valueType: DuckDBType;
108
+ constructor(valueType: DuckDBType);
109
+ }
110
+ export interface DuckDBStructEntryType {
111
+ readonly name: string;
112
+ readonly valueType: DuckDBType;
113
+ }
114
+ export declare class DuckDBStructType extends BaseDuckDBType {
115
+ readonly entries: readonly DuckDBStructEntryType[];
116
+ constructor(entries: readonly DuckDBStructEntryType[]);
117
+ }
118
+ export declare class DuckDBMapType extends BaseDuckDBType {
119
+ readonly keyType: DuckDBType;
120
+ readonly valueType: DuckDBType;
121
+ constructor(keyType: DuckDBType, valueType: DuckDBType);
122
+ }
123
+ export declare class DuckDBArrayType extends BaseDuckDBType {
124
+ readonly valueType: DuckDBType;
125
+ readonly length: number;
126
+ constructor(valueType: DuckDBType, length: number);
127
+ }
128
+ export declare class DuckDBUUIDType extends BaseDuckDBType {
129
+ private constructor();
130
+ static readonly instance: DuckDBUUIDType;
131
+ }
132
+ export interface DuckDBUnionAlternativeType {
133
+ readonly tag: string;
134
+ readonly valueType: DuckDBType;
135
+ }
136
+ export declare class DuckDBUnionType extends BaseDuckDBType {
137
+ readonly alternatives: readonly DuckDBUnionAlternativeType[];
138
+ constructor(alternatives: readonly DuckDBUnionAlternativeType[]);
139
+ }
140
+ export declare class DuckDBBitType extends BaseDuckDBType {
141
+ private constructor();
142
+ static readonly instance: DuckDBBitType;
143
+ }
144
+ export declare class DuckDBTimeTZType extends BaseDuckDBType {
145
+ private constructor();
146
+ static readonly instance: DuckDBTimeTZType;
147
+ }
148
+ export declare class DuckDBTimestampTZType extends BaseDuckDBType {
149
+ private constructor();
150
+ static readonly instance: DuckDBTimestampTZType;
151
+ }
152
+ export declare class DuckDBAnyType extends BaseDuckDBType {
153
+ private constructor();
154
+ static readonly instance: DuckDBAnyType;
155
+ }
156
+ export declare class DuckDBVarIntType extends BaseDuckDBType {
157
+ private constructor();
158
+ static readonly instance: DuckDBVarIntType;
159
+ }
160
+ export declare class DuckDBSQLNullType extends BaseDuckDBType {
161
+ private constructor();
162
+ static readonly instance: DuckDBSQLNullType;
163
+ }
164
+ 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;
@@ -0,0 +1,279 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DuckDBSQLNullType = exports.DuckDBVarIntType = exports.DuckDBAnyType = exports.DuckDBTimestampTZType = exports.DuckDBTimeTZType = exports.DuckDBBitType = exports.DuckDBUnionType = exports.DuckDBUUIDType = exports.DuckDBArrayType = exports.DuckDBMapType = exports.DuckDBStructType = exports.DuckDBListType = exports.DuckDBEnumType = exports.DuckDBTimestampNanosecondsType = exports.DuckDBTimestampMillisecondsType = exports.DuckDBTimestampSecondsType = exports.DuckDBDecimalType = exports.DuckDBBlobType = exports.DuckDBVarCharType = exports.DuckDBUHugeIntType = exports.DuckDBHugeIntType = exports.DuckDBIntervalType = exports.DuckDBTimeType = exports.DuckDBDateType = exports.DuckDBTimestampType = exports.DuckDBDoubleType = exports.DuckDBFloatType = exports.DuckDBUBigIntType = exports.DuckDBUIntegerType = exports.DuckDBUSmallIntType = exports.DuckDBUTinyIntType = exports.DuckDBBigIntType = exports.DuckDBIntegerType = exports.DuckDBSmallIntType = exports.DuckDBTinyIntType = exports.DuckDBBooleanType = exports.BaseDuckDBType = void 0;
4
+ const DuckDBTypeId_1 = require("./DuckDBTypeId");
5
+ class BaseDuckDBType {
6
+ typeId;
7
+ constructor(typeId) {
8
+ this.typeId = typeId;
9
+ }
10
+ }
11
+ exports.BaseDuckDBType = BaseDuckDBType;
12
+ class DuckDBBooleanType extends BaseDuckDBType {
13
+ constructor() {
14
+ super(DuckDBTypeId_1.DuckDBTypeId.BOOLEAN);
15
+ }
16
+ static instance = new DuckDBBooleanType();
17
+ }
18
+ exports.DuckDBBooleanType = DuckDBBooleanType;
19
+ class DuckDBTinyIntType extends BaseDuckDBType {
20
+ constructor() {
21
+ super(DuckDBTypeId_1.DuckDBTypeId.TINYINT);
22
+ }
23
+ static instance = new DuckDBTinyIntType();
24
+ }
25
+ exports.DuckDBTinyIntType = DuckDBTinyIntType;
26
+ class DuckDBSmallIntType extends BaseDuckDBType {
27
+ constructor() {
28
+ super(DuckDBTypeId_1.DuckDBTypeId.SMALLINT);
29
+ }
30
+ static instance = new DuckDBSmallIntType();
31
+ }
32
+ exports.DuckDBSmallIntType = DuckDBSmallIntType;
33
+ class DuckDBIntegerType extends BaseDuckDBType {
34
+ constructor() {
35
+ super(DuckDBTypeId_1.DuckDBTypeId.INTEGER);
36
+ }
37
+ static instance = new DuckDBIntegerType();
38
+ }
39
+ exports.DuckDBIntegerType = DuckDBIntegerType;
40
+ class DuckDBBigIntType extends BaseDuckDBType {
41
+ constructor() {
42
+ super(DuckDBTypeId_1.DuckDBTypeId.BIGINT);
43
+ }
44
+ static instance = new DuckDBBigIntType();
45
+ }
46
+ exports.DuckDBBigIntType = DuckDBBigIntType;
47
+ class DuckDBUTinyIntType extends BaseDuckDBType {
48
+ constructor() {
49
+ super(DuckDBTypeId_1.DuckDBTypeId.UTINYINT);
50
+ }
51
+ static instance = new DuckDBUTinyIntType();
52
+ }
53
+ exports.DuckDBUTinyIntType = DuckDBUTinyIntType;
54
+ class DuckDBUSmallIntType extends BaseDuckDBType {
55
+ constructor() {
56
+ super(DuckDBTypeId_1.DuckDBTypeId.USMALLINT);
57
+ }
58
+ static instance = new DuckDBUSmallIntType();
59
+ }
60
+ exports.DuckDBUSmallIntType = DuckDBUSmallIntType;
61
+ class DuckDBUIntegerType extends BaseDuckDBType {
62
+ constructor() {
63
+ super(DuckDBTypeId_1.DuckDBTypeId.UINTEGER);
64
+ }
65
+ static instance = new DuckDBUIntegerType();
66
+ }
67
+ exports.DuckDBUIntegerType = DuckDBUIntegerType;
68
+ class DuckDBUBigIntType extends BaseDuckDBType {
69
+ constructor() {
70
+ super(DuckDBTypeId_1.DuckDBTypeId.UBIGINT);
71
+ }
72
+ static instance = new DuckDBUBigIntType();
73
+ }
74
+ exports.DuckDBUBigIntType = DuckDBUBigIntType;
75
+ class DuckDBFloatType extends BaseDuckDBType {
76
+ constructor() {
77
+ super(DuckDBTypeId_1.DuckDBTypeId.FLOAT);
78
+ }
79
+ static instance = new DuckDBFloatType();
80
+ }
81
+ exports.DuckDBFloatType = DuckDBFloatType;
82
+ class DuckDBDoubleType extends BaseDuckDBType {
83
+ constructor() {
84
+ super(DuckDBTypeId_1.DuckDBTypeId.DOUBLE);
85
+ }
86
+ static instance = new DuckDBDoubleType();
87
+ }
88
+ exports.DuckDBDoubleType = DuckDBDoubleType;
89
+ class DuckDBTimestampType extends BaseDuckDBType {
90
+ constructor() {
91
+ super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP);
92
+ }
93
+ static instance = new DuckDBTimestampType();
94
+ }
95
+ exports.DuckDBTimestampType = DuckDBTimestampType;
96
+ class DuckDBDateType extends BaseDuckDBType {
97
+ constructor() {
98
+ super(DuckDBTypeId_1.DuckDBTypeId.DATE);
99
+ }
100
+ static instance = new DuckDBDateType();
101
+ }
102
+ exports.DuckDBDateType = DuckDBDateType;
103
+ class DuckDBTimeType extends BaseDuckDBType {
104
+ constructor() {
105
+ super(DuckDBTypeId_1.DuckDBTypeId.TIME);
106
+ }
107
+ static instance = new DuckDBTimeType();
108
+ }
109
+ exports.DuckDBTimeType = DuckDBTimeType;
110
+ class DuckDBIntervalType extends BaseDuckDBType {
111
+ constructor() {
112
+ super(DuckDBTypeId_1.DuckDBTypeId.INTERVAL);
113
+ }
114
+ static instance = new DuckDBIntervalType();
115
+ }
116
+ exports.DuckDBIntervalType = DuckDBIntervalType;
117
+ class DuckDBHugeIntType extends BaseDuckDBType {
118
+ constructor() {
119
+ super(DuckDBTypeId_1.DuckDBTypeId.HUGEINT);
120
+ }
121
+ static instance = new DuckDBHugeIntType();
122
+ }
123
+ exports.DuckDBHugeIntType = DuckDBHugeIntType;
124
+ class DuckDBUHugeIntType extends BaseDuckDBType {
125
+ constructor() {
126
+ super(DuckDBTypeId_1.DuckDBTypeId.UHUGEINT);
127
+ }
128
+ static instance = new DuckDBUHugeIntType();
129
+ }
130
+ exports.DuckDBUHugeIntType = DuckDBUHugeIntType;
131
+ class DuckDBVarCharType extends BaseDuckDBType {
132
+ constructor() {
133
+ super(DuckDBTypeId_1.DuckDBTypeId.VARCHAR);
134
+ }
135
+ static instance = new DuckDBVarCharType();
136
+ }
137
+ exports.DuckDBVarCharType = DuckDBVarCharType;
138
+ class DuckDBBlobType extends BaseDuckDBType {
139
+ constructor() {
140
+ super(DuckDBTypeId_1.DuckDBTypeId.BLOB);
141
+ }
142
+ static instance = new DuckDBBlobType();
143
+ }
144
+ exports.DuckDBBlobType = DuckDBBlobType;
145
+ class DuckDBDecimalType extends BaseDuckDBType {
146
+ width;
147
+ scale;
148
+ constructor(width, scale) {
149
+ super(DuckDBTypeId_1.DuckDBTypeId.DECIMAL);
150
+ this.width = width;
151
+ this.scale = scale;
152
+ }
153
+ static default = new DuckDBDecimalType(18, 3);
154
+ }
155
+ exports.DuckDBDecimalType = DuckDBDecimalType;
156
+ class DuckDBTimestampSecondsType extends BaseDuckDBType {
157
+ constructor() {
158
+ super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_S);
159
+ }
160
+ static instance = new DuckDBTimestampSecondsType();
161
+ }
162
+ exports.DuckDBTimestampSecondsType = DuckDBTimestampSecondsType;
163
+ class DuckDBTimestampMillisecondsType extends BaseDuckDBType {
164
+ constructor() {
165
+ super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_MS);
166
+ }
167
+ static instance = new DuckDBTimestampMillisecondsType();
168
+ }
169
+ exports.DuckDBTimestampMillisecondsType = DuckDBTimestampMillisecondsType;
170
+ class DuckDBTimestampNanosecondsType extends BaseDuckDBType {
171
+ constructor() {
172
+ super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_NS);
173
+ }
174
+ static instance = new DuckDBTimestampNanosecondsType();
175
+ }
176
+ exports.DuckDBTimestampNanosecondsType = DuckDBTimestampNanosecondsType;
177
+ class DuckDBEnumType extends BaseDuckDBType {
178
+ values;
179
+ internalTypeId;
180
+ constructor(values, internalTypeId) {
181
+ super(DuckDBTypeId_1.DuckDBTypeId.ENUM);
182
+ this.values = values;
183
+ this.internalTypeId = internalTypeId;
184
+ }
185
+ }
186
+ exports.DuckDBEnumType = DuckDBEnumType;
187
+ class DuckDBListType extends BaseDuckDBType {
188
+ valueType;
189
+ constructor(valueType) {
190
+ super(DuckDBTypeId_1.DuckDBTypeId.LIST);
191
+ this.valueType = valueType;
192
+ }
193
+ }
194
+ exports.DuckDBListType = DuckDBListType;
195
+ class DuckDBStructType extends BaseDuckDBType {
196
+ entries;
197
+ constructor(entries) {
198
+ super(DuckDBTypeId_1.DuckDBTypeId.STRUCT);
199
+ this.entries = entries;
200
+ }
201
+ }
202
+ exports.DuckDBStructType = DuckDBStructType;
203
+ class DuckDBMapType extends BaseDuckDBType {
204
+ keyType;
205
+ valueType;
206
+ constructor(keyType, valueType) {
207
+ super(DuckDBTypeId_1.DuckDBTypeId.MAP);
208
+ this.keyType = keyType;
209
+ this.valueType = valueType;
210
+ }
211
+ }
212
+ exports.DuckDBMapType = DuckDBMapType;
213
+ class DuckDBArrayType extends BaseDuckDBType {
214
+ valueType;
215
+ length;
216
+ constructor(valueType, length) {
217
+ super(DuckDBTypeId_1.DuckDBTypeId.ARRAY);
218
+ this.valueType = valueType;
219
+ this.length = length;
220
+ }
221
+ }
222
+ exports.DuckDBArrayType = DuckDBArrayType;
223
+ class DuckDBUUIDType extends BaseDuckDBType {
224
+ constructor() {
225
+ super(DuckDBTypeId_1.DuckDBTypeId.UUID);
226
+ }
227
+ static instance = new DuckDBUUIDType();
228
+ }
229
+ exports.DuckDBUUIDType = DuckDBUUIDType;
230
+ class DuckDBUnionType extends BaseDuckDBType {
231
+ alternatives;
232
+ constructor(alternatives) {
233
+ super(DuckDBTypeId_1.DuckDBTypeId.UNION);
234
+ this.alternatives = alternatives;
235
+ }
236
+ }
237
+ exports.DuckDBUnionType = DuckDBUnionType;
238
+ class DuckDBBitType extends BaseDuckDBType {
239
+ constructor() {
240
+ super(DuckDBTypeId_1.DuckDBTypeId.BIT);
241
+ }
242
+ static instance = new DuckDBBitType();
243
+ }
244
+ exports.DuckDBBitType = DuckDBBitType;
245
+ class DuckDBTimeTZType extends BaseDuckDBType {
246
+ constructor() {
247
+ super(DuckDBTypeId_1.DuckDBTypeId.TIME_TZ);
248
+ }
249
+ static instance = new DuckDBTimeTZType();
250
+ }
251
+ exports.DuckDBTimeTZType = DuckDBTimeTZType;
252
+ class DuckDBTimestampTZType extends BaseDuckDBType {
253
+ constructor() {
254
+ super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_TZ);
255
+ }
256
+ static instance = new DuckDBTimestampTZType();
257
+ }
258
+ exports.DuckDBTimestampTZType = DuckDBTimestampTZType;
259
+ class DuckDBAnyType extends BaseDuckDBType {
260
+ constructor() {
261
+ super(DuckDBTypeId_1.DuckDBTypeId.ANY);
262
+ }
263
+ static instance = new DuckDBAnyType();
264
+ }
265
+ exports.DuckDBAnyType = DuckDBAnyType;
266
+ class DuckDBVarIntType extends BaseDuckDBType {
267
+ constructor() {
268
+ super(DuckDBTypeId_1.DuckDBTypeId.VARINT);
269
+ }
270
+ static instance = new DuckDBVarIntType();
271
+ }
272
+ exports.DuckDBVarIntType = DuckDBVarIntType;
273
+ class DuckDBSQLNullType extends BaseDuckDBType {
274
+ constructor() {
275
+ super(DuckDBTypeId_1.DuckDBTypeId.SQLNULL);
276
+ }
277
+ static instance = new DuckDBSQLNullType();
278
+ }
279
+ exports.DuckDBSQLNullType = DuckDBSQLNullType;
@@ -0,0 +1,39 @@
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
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DuckDBTypeId = void 0;
4
+ // copy of duckdb_type, with names shortened
5
+ var DuckDBTypeId;
6
+ (function (DuckDBTypeId) {
7
+ DuckDBTypeId[DuckDBTypeId["INVALID"] = 0] = "INVALID";
8
+ DuckDBTypeId[DuckDBTypeId["BOOLEAN"] = 1] = "BOOLEAN";
9
+ DuckDBTypeId[DuckDBTypeId["TINYINT"] = 2] = "TINYINT";
10
+ DuckDBTypeId[DuckDBTypeId["SMALLINT"] = 3] = "SMALLINT";
11
+ DuckDBTypeId[DuckDBTypeId["INTEGER"] = 4] = "INTEGER";
12
+ DuckDBTypeId[DuckDBTypeId["BIGINT"] = 5] = "BIGINT";
13
+ DuckDBTypeId[DuckDBTypeId["UTINYINT"] = 6] = "UTINYINT";
14
+ DuckDBTypeId[DuckDBTypeId["USMALLINT"] = 7] = "USMALLINT";
15
+ DuckDBTypeId[DuckDBTypeId["UINTEGER"] = 8] = "UINTEGER";
16
+ DuckDBTypeId[DuckDBTypeId["UBIGINT"] = 9] = "UBIGINT";
17
+ DuckDBTypeId[DuckDBTypeId["FLOAT"] = 10] = "FLOAT";
18
+ DuckDBTypeId[DuckDBTypeId["DOUBLE"] = 11] = "DOUBLE";
19
+ DuckDBTypeId[DuckDBTypeId["TIMESTAMP"] = 12] = "TIMESTAMP";
20
+ DuckDBTypeId[DuckDBTypeId["DATE"] = 13] = "DATE";
21
+ DuckDBTypeId[DuckDBTypeId["TIME"] = 14] = "TIME";
22
+ DuckDBTypeId[DuckDBTypeId["INTERVAL"] = 15] = "INTERVAL";
23
+ DuckDBTypeId[DuckDBTypeId["HUGEINT"] = 16] = "HUGEINT";
24
+ DuckDBTypeId[DuckDBTypeId["UHUGEINT"] = 32] = "UHUGEINT";
25
+ DuckDBTypeId[DuckDBTypeId["VARCHAR"] = 17] = "VARCHAR";
26
+ DuckDBTypeId[DuckDBTypeId["BLOB"] = 18] = "BLOB";
27
+ DuckDBTypeId[DuckDBTypeId["DECIMAL"] = 19] = "DECIMAL";
28
+ DuckDBTypeId[DuckDBTypeId["TIMESTAMP_S"] = 20] = "TIMESTAMP_S";
29
+ DuckDBTypeId[DuckDBTypeId["TIMESTAMP_MS"] = 21] = "TIMESTAMP_MS";
30
+ DuckDBTypeId[DuckDBTypeId["TIMESTAMP_NS"] = 22] = "TIMESTAMP_NS";
31
+ DuckDBTypeId[DuckDBTypeId["ENUM"] = 23] = "ENUM";
32
+ DuckDBTypeId[DuckDBTypeId["LIST"] = 24] = "LIST";
33
+ DuckDBTypeId[DuckDBTypeId["STRUCT"] = 25] = "STRUCT";
34
+ DuckDBTypeId[DuckDBTypeId["MAP"] = 26] = "MAP";
35
+ DuckDBTypeId[DuckDBTypeId["ARRAY"] = 33] = "ARRAY";
36
+ DuckDBTypeId[DuckDBTypeId["UUID"] = 27] = "UUID";
37
+ DuckDBTypeId[DuckDBTypeId["UNION"] = 28] = "UNION";
38
+ DuckDBTypeId[DuckDBTypeId["BIT"] = 29] = "BIT";
39
+ DuckDBTypeId[DuckDBTypeId["TIME_TZ"] = 30] = "TIME_TZ";
40
+ DuckDBTypeId[DuckDBTypeId["TIMESTAMP_TZ"] = 31] = "TIMESTAMP_TZ";
41
+ DuckDBTypeId[DuckDBTypeId["ANY"] = 34] = "ANY";
42
+ DuckDBTypeId[DuckDBTypeId["VARINT"] = 35] = "VARINT";
43
+ DuckDBTypeId[DuckDBTypeId["SQLNULL"] = 36] = "SQLNULL";
44
+ })(DuckDBTypeId || (exports.DuckDBTypeId = DuckDBTypeId = {}));
@@ -0,0 +1,8 @@
1
+ import duckdb from '@duckdb/node-bindings';
2
+ type Date_ = duckdb.Date_;
3
+ type Decimal = duckdb.Decimal;
4
+ type Interval = duckdb.Interval;
5
+ type Time = duckdb.Time;
6
+ type Timestamp = duckdb.Timestamp;
7
+ export type { Date_, Decimal, Interval, Time, Timestamp };
8
+ export type DuckDBValue = null | boolean | number | bigint | string | Uint8Array | Date_ | Decimal | Interval | Time | Timestamp;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });