@haybarn/node-api 1.5.5-rc1 → 2.0.0-rc3
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 +315 -20
- package/lib/DuckDBAppender.d.ts +8 -2
- package/lib/DuckDBAppender.js +19 -1
- package/lib/DuckDBConnection.d.ts +2 -0
- package/lib/DuckDBConnection.js +4 -1
- package/lib/DuckDBDataChunk.d.ts +30 -0
- package/lib/DuckDBDataChunk.js +94 -1
- package/lib/DuckDBDataChunkWriter.d.ts +74 -0
- package/lib/DuckDBDataChunkWriter.js +109 -0
- package/lib/DuckDBLogicalType.d.ts +5 -1
- package/lib/DuckDBLogicalType.js +18 -1
- package/lib/DuckDBMaterializedResult.d.ts +8 -1
- package/lib/DuckDBMaterializedResult.js +22 -2
- package/lib/DuckDBPendingResult.d.ts +16 -1
- package/lib/DuckDBPendingResult.js +19 -2
- package/lib/DuckDBPreparedStatement.d.ts +4 -1
- package/lib/DuckDBPreparedStatement.js +17 -4
- package/lib/DuckDBResult.d.ts +21 -1
- package/lib/DuckDBResult.js +87 -5
- package/lib/DuckDBResultReader.d.ts +5 -0
- package/lib/DuckDBResultReader.js +9 -2
- package/lib/DuckDBScalarFunction.d.ts +9 -5
- package/lib/DuckDBScalarFunction.js +14 -5
- package/lib/DuckDBScalarFunctionBindInfo.d.ts +16 -0
- package/lib/{DuckDBBindInfo.js → DuckDBScalarFunctionBindInfo.js} +5 -3
- package/lib/DuckDBScalarFunctionInfo.d.ts +16 -0
- package/lib/{DuckDBFunctionInfo.js → DuckDBScalarFunctionInfo.js} +11 -3
- package/lib/{DuckDBBindInfo.d.ts → DuckDBScalarFunctionInitInfo.d.ts} +6 -4
- package/lib/DuckDBScalarFunctionInitInfo.js +39 -0
- package/lib/DuckDBTableFunction.d.ts +41 -0
- package/lib/DuckDBTableFunction.js +83 -0
- package/lib/DuckDBTableFunctionBindInfo.d.ts +21 -0
- package/lib/DuckDBTableFunctionBindInfo.js +54 -0
- package/lib/DuckDBTableFunctionInfo.d.ts +15 -0
- package/lib/DuckDBTableFunctionInfo.js +42 -0
- package/lib/DuckDBTableFunctionInitInfo.d.ts +22 -0
- package/lib/DuckDBTableFunctionInitInfo.js +58 -0
- package/lib/DuckDBType.d.ts +1 -373
- package/lib/DuckDBType.js +14 -927
- package/lib/DuckDBTypeId.d.ts +4 -1
- package/lib/DuckDBTypeId.js +3 -0
- package/lib/DuckDBValueConverter.d.ts +10 -0
- package/lib/DuckDBValueConverters.d.ts +27 -0
- package/lib/DuckDBValueConverters.js +128 -1
- package/lib/DuckDBVector.d.ts +1 -596
- package/lib/DuckDBVector.js +14 -2522
- package/lib/JSDuckDBValueConverter.d.ts +1 -2
- package/lib/JSDuckDBValueConverter.js +5 -2
- package/lib/JSInputTypeForTypeId.d.ts +104 -0
- package/lib/JSInputTypeForTypeId.js +3 -0
- package/lib/JSToDuckDBValueConverter.d.ts +30 -0
- package/lib/JSToDuckDBValueConverter.js +83 -0
- package/lib/JSTypeForTypeId.d.ts +91 -0
- package/lib/JSTypeForTypeId.js +3 -0
- package/lib/JsonDuckDBValueConverter.d.ts +1 -2
- package/lib/JsonDuckDBValueConverter.js +4 -1
- package/lib/JsonTypeForTypeId.d.ts +96 -0
- package/lib/JsonTypeForTypeId.js +3 -0
- package/lib/ToDuckDBValueConverter.d.ts +41 -0
- package/lib/ToDuckDBValueConverter.js +27 -0
- package/lib/ToDuckDBValueConverters.d.ts +54 -0
- package/lib/ToDuckDBValueConverters.js +199 -0
- package/lib/conversion/dateTimeStringConversion.d.ts +2 -2
- package/lib/conversion/dateTimeStringConversion.js +20 -7
- package/lib/conversion/varintDecode.d.ts +18 -0
- package/lib/conversion/varintDecode.js +42 -0
- package/lib/convertColumnsFromChunks.d.ts +1 -1
- package/lib/convertColumnsFromChunks.js +2 -2
- package/lib/createResult.d.ts +2 -1
- package/lib/createResult.js +3 -3
- package/lib/createValue.js +63 -5
- package/lib/duckdb.d.ts +15 -2
- package/lib/duckdb.js +15 -2
- package/lib/getColumnsFromChunks.d.ts +1 -1
- package/lib/getColumnsFromChunks.js +2 -2
- package/lib/getColumnsObjectFromChunks.js +3 -0
- package/lib/readValue.d.ts +22 -0
- package/lib/readValue.js +35 -0
- package/lib/typeForValue.js +21 -2
- package/lib/types/BaseDuckDBType.d.ts +11 -0
- package/lib/types/BaseDuckDBType.js +34 -0
- package/lib/types/DuckDBAnyType.d.ts +8 -0
- package/lib/types/DuckDBAnyType.js +16 -0
- package/lib/types/DuckDBArrayType.d.ts +14 -0
- package/lib/types/DuckDBArrayType.js +38 -0
- package/lib/types/DuckDBBigIntType.d.ts +12 -0
- package/lib/types/DuckDBBigIntType.js +24 -0
- package/lib/types/DuckDBBigNumType.d.ts +12 -0
- package/lib/types/DuckDBBigNumType.js +24 -0
- package/lib/types/DuckDBBitType.d.ts +8 -0
- package/lib/types/DuckDBBitType.js +16 -0
- package/lib/types/DuckDBBlobType.d.ts +8 -0
- package/lib/types/DuckDBBlobType.js +16 -0
- package/lib/types/DuckDBBooleanType.d.ts +8 -0
- package/lib/types/DuckDBBooleanType.js +16 -0
- package/lib/types/DuckDBDateType.d.ts +14 -0
- package/lib/types/DuckDBDateType.js +32 -0
- package/lib/types/DuckDBDecimalType.d.ts +14 -0
- package/lib/types/DuckDBDecimalType.js +45 -0
- package/lib/types/DuckDBDoubleType.d.ts +12 -0
- package/lib/types/DuckDBDoubleType.js +24 -0
- package/lib/types/DuckDBEnumType.d.ts +29 -0
- package/lib/types/DuckDBEnumType.js +100 -0
- package/lib/types/DuckDBFloatType.d.ts +12 -0
- package/lib/types/DuckDBFloatType.js +24 -0
- package/lib/types/DuckDBGeometryType.d.ts +19 -0
- package/lib/types/DuckDBGeometryType.js +38 -0
- package/lib/types/DuckDBHugeIntType.d.ts +12 -0
- package/lib/types/DuckDBHugeIntType.js +24 -0
- package/lib/types/DuckDBIntegerLiteralType.d.ts +8 -0
- package/lib/types/DuckDBIntegerLiteralType.js +16 -0
- package/lib/types/DuckDBIntegerType.d.ts +12 -0
- package/lib/types/DuckDBIntegerType.js +24 -0
- package/lib/types/DuckDBIntervalType.d.ts +8 -0
- package/lib/types/DuckDBIntervalType.js +16 -0
- package/lib/types/DuckDBListType.d.ts +13 -0
- package/lib/types/DuckDBListType.js +35 -0
- package/lib/types/DuckDBMapType.d.ts +14 -0
- package/lib/types/DuckDBMapType.js +38 -0
- package/lib/types/DuckDBSQLNullType.d.ts +10 -0
- package/lib/types/DuckDBSQLNullType.js +20 -0
- package/lib/types/DuckDBSmallIntType.d.ts +12 -0
- package/lib/types/DuckDBSmallIntType.js +24 -0
- package/lib/types/DuckDBStringLiteralType.d.ts +8 -0
- package/lib/types/DuckDBStringLiteralType.js +16 -0
- package/lib/types/DuckDBStructType.d.ts +29 -0
- package/lib/types/DuckDBStructType.js +86 -0
- package/lib/types/DuckDBTimeNSType.d.ts +11 -0
- package/lib/types/DuckDBTimeNSType.js +23 -0
- package/lib/types/DuckDBTimeTZType.d.ts +12 -0
- package/lib/types/DuckDBTimeTZType.js +26 -0
- package/lib/types/DuckDBTimeType.d.ts +11 -0
- package/lib/types/DuckDBTimeType.js +23 -0
- package/lib/types/DuckDBTimestampMillisecondsType.d.ts +14 -0
- package/lib/types/DuckDBTimestampMillisecondsType.js +32 -0
- package/lib/types/DuckDBTimestampNanosecondsType.d.ts +14 -0
- package/lib/types/DuckDBTimestampNanosecondsType.js +32 -0
- package/lib/types/DuckDBTimestampSecondsType.d.ts +14 -0
- package/lib/types/DuckDBTimestampSecondsType.js +32 -0
- package/lib/types/DuckDBTimestampTZNanosecondsType.d.ts +15 -0
- package/lib/types/DuckDBTimestampTZNanosecondsType.js +35 -0
- package/lib/types/DuckDBTimestampTZType.d.ts +15 -0
- package/lib/types/DuckDBTimestampTZType.js +35 -0
- package/lib/types/DuckDBTimestampType.d.ts +16 -0
- package/lib/types/DuckDBTimestampType.js +33 -0
- package/lib/types/DuckDBTinyIntType.d.ts +12 -0
- package/lib/types/DuckDBTinyIntType.js +24 -0
- package/lib/types/DuckDBType.d.ts +43 -0
- package/lib/types/DuckDBType.js +2 -0
- package/lib/types/DuckDBUBigIntType.d.ts +12 -0
- package/lib/types/DuckDBUBigIntType.js +24 -0
- package/lib/types/DuckDBUHugeIntType.d.ts +12 -0
- package/lib/types/DuckDBUHugeIntType.js +24 -0
- package/lib/types/DuckDBUIntegerType.d.ts +12 -0
- package/lib/types/DuckDBUIntegerType.js +24 -0
- package/lib/types/DuckDBUSmallIntType.d.ts +12 -0
- package/lib/types/DuckDBUSmallIntType.js +24 -0
- package/lib/types/DuckDBUTinyIntType.d.ts +12 -0
- package/lib/types/DuckDBUTinyIntType.js +24 -0
- package/lib/types/DuckDBUUIDType.d.ts +11 -0
- package/lib/types/DuckDBUUIDType.js +23 -0
- package/lib/types/DuckDBUnionType.d.ts +18 -0
- package/lib/types/DuckDBUnionType.js +64 -0
- package/lib/types/DuckDBVarCharType.d.ts +8 -0
- package/lib/types/DuckDBVarCharType.js +16 -0
- package/lib/types/DuckDBVariantType.d.ts +8 -0
- package/lib/types/DuckDBVariantType.js +16 -0
- package/lib/types/index.d.ts +44 -0
- package/lib/types/index.js +60 -0
- package/lib/values/DuckDBGeometryValue.d.ts +12 -0
- package/lib/values/DuckDBGeometryValue.js +30 -0
- package/lib/values/DuckDBTimestampTZNanosecondsValue.d.ts +14 -0
- package/lib/values/DuckDBTimestampTZNanosecondsValue.js +33 -0
- package/lib/values/DuckDBTupleValue.d.ts +11 -0
- package/lib/values/DuckDBTupleValue.js +22 -0
- package/lib/values/DuckDBUUIDValue.js +5 -1
- package/lib/values/DuckDBValue.d.ts +5 -1
- package/lib/values/DuckDBVariantValue.d.ts +19 -0
- package/lib/values/DuckDBVariantValue.js +30 -0
- package/lib/values/index.d.ts +4 -0
- package/lib/values/index.js +4 -0
- package/lib/vectors/DuckDBArrayVector.d.ts +21 -0
- package/lib/vectors/DuckDBArrayVector.js +79 -0
- package/lib/vectors/DuckDBBigIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBBigIntVector.js +58 -0
- package/lib/vectors/DuckDBBigNumVector.d.ts +21 -0
- package/lib/vectors/DuckDBBigNumVector.js +70 -0
- package/lib/vectors/DuckDBBitVector.d.ts +22 -0
- package/lib/vectors/DuckDBBitVector.js +74 -0
- package/lib/vectors/DuckDBBlobVector.d.ts +32 -0
- package/lib/vectors/DuckDBBlobVector.js +83 -0
- package/lib/vectors/DuckDBBooleanVector.d.ts +18 -0
- package/lib/vectors/DuckDBBooleanVector.js +58 -0
- package/lib/vectors/DuckDBDateVector.d.ts +18 -0
- package/lib/vectors/DuckDBDateVector.js +64 -0
- package/lib/vectors/DuckDBDecimal128Vector.d.ts +21 -0
- package/lib/vectors/DuckDBDecimal128Vector.js +64 -0
- package/lib/vectors/DuckDBDecimal16Vector.d.ts +21 -0
- package/lib/vectors/DuckDBDecimal16Vector.js +64 -0
- package/lib/vectors/DuckDBDecimal32Vector.d.ts +21 -0
- package/lib/vectors/DuckDBDecimal32Vector.js +64 -0
- package/lib/vectors/DuckDBDecimal64Vector.d.ts +21 -0
- package/lib/vectors/DuckDBDecimal64Vector.js +64 -0
- package/lib/vectors/DuckDBDoubleVector.d.ts +17 -0
- package/lib/vectors/DuckDBDoubleVector.js +54 -0
- package/lib/vectors/DuckDBEnum16Vector.d.ts +18 -0
- package/lib/vectors/DuckDBEnum16Vector.js +57 -0
- package/lib/vectors/DuckDBEnum32Vector.d.ts +18 -0
- package/lib/vectors/DuckDBEnum32Vector.js +57 -0
- package/lib/vectors/DuckDBEnum8Vector.d.ts +18 -0
- package/lib/vectors/DuckDBEnum8Vector.js +57 -0
- package/lib/vectors/DuckDBFloatVector.d.ts +17 -0
- package/lib/vectors/DuckDBFloatVector.js +54 -0
- package/lib/vectors/DuckDBGeometryVector.d.ts +22 -0
- package/lib/vectors/DuckDBGeometryVector.js +69 -0
- package/lib/vectors/DuckDBHugeIntVector.d.ts +19 -0
- package/lib/vectors/DuckDBHugeIntVector.js +63 -0
- package/lib/vectors/DuckDBIntegerVector.d.ts +17 -0
- package/lib/vectors/DuckDBIntegerVector.js +61 -0
- package/lib/vectors/DuckDBIntervalVector.d.ts +19 -0
- package/lib/vectors/DuckDBIntervalVector.js +67 -0
- package/lib/vectors/DuckDBListVector.d.ts +35 -0
- package/lib/vectors/DuckDBListVector.js +151 -0
- package/lib/vectors/DuckDBMapVector.d.ts +17 -0
- package/lib/vectors/DuckDBMapVector.js +60 -0
- package/lib/vectors/DuckDBSQLNullVector.d.ts +18 -0
- package/lib/vectors/DuckDBSQLNullVector.js +44 -0
- package/lib/vectors/DuckDBSmallIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBSmallIntVector.js +61 -0
- package/lib/vectors/DuckDBStructVector.d.ts +35 -0
- package/lib/vectors/DuckDBStructVector.js +105 -0
- package/lib/vectors/DuckDBTimeNSVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimeNSVector.js +61 -0
- package/lib/vectors/DuckDBTimeTZVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimeTZVector.js +61 -0
- package/lib/vectors/DuckDBTimeVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimeVector.js +61 -0
- package/lib/vectors/DuckDBTimestampMillisecondsVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampMillisecondsVector.js +61 -0
- package/lib/vectors/DuckDBTimestampNanosecondsVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampNanosecondsVector.js +61 -0
- package/lib/vectors/DuckDBTimestampSecondsVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampSecondsVector.js +61 -0
- package/lib/vectors/DuckDBTimestampTZNanosecondsVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampTZNanosecondsVector.js +61 -0
- package/lib/vectors/DuckDBTimestampTZVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampTZVector.js +61 -0
- package/lib/vectors/DuckDBTimestampVector.d.ts +18 -0
- package/lib/vectors/DuckDBTimestampVector.js +61 -0
- package/lib/vectors/DuckDBTinyIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBTinyIntVector.js +61 -0
- package/lib/vectors/DuckDBTupleVector.d.ts +26 -0
- package/lib/vectors/DuckDBTupleVector.js +91 -0
- package/lib/vectors/DuckDBUBigIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBUBigIntVector.js +58 -0
- package/lib/vectors/DuckDBUHugeIntVector.d.ts +19 -0
- package/lib/vectors/DuckDBUHugeIntVector.js +63 -0
- package/lib/vectors/DuckDBUIntegerVector.d.ts +17 -0
- package/lib/vectors/DuckDBUIntegerVector.js +61 -0
- package/lib/vectors/DuckDBUSmallIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBUSmallIntVector.js +61 -0
- package/lib/vectors/DuckDBUTinyIntVector.d.ts +17 -0
- package/lib/vectors/DuckDBUTinyIntVector.js +61 -0
- package/lib/vectors/DuckDBUUIDVector.d.ts +19 -0
- package/lib/vectors/DuckDBUUIDVector.js +59 -0
- package/lib/vectors/DuckDBUnionVector.d.ts +17 -0
- package/lib/vectors/DuckDBUnionVector.js +70 -0
- package/lib/vectors/DuckDBValidity.d.ts +12 -0
- package/lib/vectors/DuckDBValidity.js +91 -0
- package/lib/vectors/DuckDBVarCharVector.d.ts +21 -0
- package/lib/vectors/DuckDBVarCharVector.js +74 -0
- package/lib/vectors/DuckDBVariantVector.d.ts +42 -0
- package/lib/vectors/DuckDBVariantVector.js +461 -0
- package/lib/vectors/DuckDBVector.d.ts +14 -0
- package/lib/vectors/DuckDBVector.js +27 -0
- package/lib/vectors/createVector.d.ts +1 -0
- package/lib/vectors/createVector.js +201 -0
- package/lib/vectors/dataAccessors.d.ts +45 -0
- package/lib/vectors/dataAccessors.js +344 -0
- package/lib/vectors/index.d.ts +47 -0
- package/lib/vectors/index.js +65 -0
- package/lib/vectors/vectorRegistry.d.ts +20 -0
- package/lib/vectors/vectorRegistry.js +16 -0
- package/package.json +3 -2
- package/lib/DuckDBFunctionInfo.d.ts +0 -10
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIME = exports.DuckDBTimeType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimeType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIME, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBTimeType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBTimeType(alias) : DuckDBTimeType.instance;
|
|
14
|
+
}
|
|
15
|
+
get max() {
|
|
16
|
+
return values_1.DuckDBTimeValue.Max;
|
|
17
|
+
}
|
|
18
|
+
get min() {
|
|
19
|
+
return values_1.DuckDBTimeValue.Min;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DuckDBTimeType = DuckDBTimeType;
|
|
23
|
+
exports.TIME = DuckDBTimeType.instance;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampMillisecondsValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampMillisecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_MS> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
static readonly instance: DuckDBTimestampMillisecondsType;
|
|
7
|
+
static create(alias?: string): DuckDBTimestampMillisecondsType;
|
|
8
|
+
get epoch(): DuckDBTimestampMillisecondsValue;
|
|
9
|
+
get max(): DuckDBTimestampMillisecondsValue;
|
|
10
|
+
get min(): DuckDBTimestampMillisecondsValue;
|
|
11
|
+
get posInf(): DuckDBTimestampMillisecondsValue;
|
|
12
|
+
get negInf(): DuckDBTimestampMillisecondsValue;
|
|
13
|
+
}
|
|
14
|
+
export declare const TIMESTAMP_MS: DuckDBTimestampMillisecondsType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMP_MS = exports.DuckDBTimestampMillisecondsType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampMillisecondsType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_MS, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBTimestampMillisecondsType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBTimestampMillisecondsType(alias) : DuckDBTimestampMillisecondsType.instance;
|
|
14
|
+
}
|
|
15
|
+
get epoch() {
|
|
16
|
+
return values_1.DuckDBTimestampMillisecondsValue.Epoch;
|
|
17
|
+
}
|
|
18
|
+
get max() {
|
|
19
|
+
return values_1.DuckDBTimestampMillisecondsValue.Max;
|
|
20
|
+
}
|
|
21
|
+
get min() {
|
|
22
|
+
return values_1.DuckDBTimestampMillisecondsValue.Min;
|
|
23
|
+
}
|
|
24
|
+
get posInf() {
|
|
25
|
+
return values_1.DuckDBTimestampMillisecondsValue.PosInf;
|
|
26
|
+
}
|
|
27
|
+
get negInf() {
|
|
28
|
+
return values_1.DuckDBTimestampMillisecondsValue.NegInf;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DuckDBTimestampMillisecondsType = DuckDBTimestampMillisecondsType;
|
|
32
|
+
exports.TIMESTAMP_MS = DuckDBTimestampMillisecondsType.instance;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampNanosecondsValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampNanosecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_NS> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
static readonly instance: DuckDBTimestampNanosecondsType;
|
|
7
|
+
static create(alias?: string): DuckDBTimestampNanosecondsType;
|
|
8
|
+
get epoch(): DuckDBTimestampNanosecondsValue;
|
|
9
|
+
get max(): DuckDBTimestampNanosecondsValue;
|
|
10
|
+
get min(): DuckDBTimestampNanosecondsValue;
|
|
11
|
+
get posInf(): DuckDBTimestampNanosecondsValue;
|
|
12
|
+
get negInf(): DuckDBTimestampNanosecondsValue;
|
|
13
|
+
}
|
|
14
|
+
export declare const TIMESTAMP_NS: DuckDBTimestampNanosecondsType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMP_NS = exports.DuckDBTimestampNanosecondsType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampNanosecondsType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_NS, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBTimestampNanosecondsType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBTimestampNanosecondsType(alias) : DuckDBTimestampNanosecondsType.instance;
|
|
14
|
+
}
|
|
15
|
+
get epoch() {
|
|
16
|
+
return values_1.DuckDBTimestampNanosecondsValue.Epoch;
|
|
17
|
+
}
|
|
18
|
+
get max() {
|
|
19
|
+
return values_1.DuckDBTimestampNanosecondsValue.Max;
|
|
20
|
+
}
|
|
21
|
+
get min() {
|
|
22
|
+
return values_1.DuckDBTimestampNanosecondsValue.Min;
|
|
23
|
+
}
|
|
24
|
+
get posInf() {
|
|
25
|
+
return values_1.DuckDBTimestampNanosecondsValue.PosInf;
|
|
26
|
+
}
|
|
27
|
+
get negInf() {
|
|
28
|
+
return values_1.DuckDBTimestampNanosecondsValue.NegInf;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DuckDBTimestampNanosecondsType = DuckDBTimestampNanosecondsType;
|
|
32
|
+
exports.TIMESTAMP_NS = DuckDBTimestampNanosecondsType.instance;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampSecondsValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampSecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_S> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
static readonly instance: DuckDBTimestampSecondsType;
|
|
7
|
+
static create(alias?: string): DuckDBTimestampSecondsType;
|
|
8
|
+
get epoch(): DuckDBTimestampSecondsValue;
|
|
9
|
+
get max(): DuckDBTimestampSecondsValue;
|
|
10
|
+
get min(): DuckDBTimestampSecondsValue;
|
|
11
|
+
get posInf(): DuckDBTimestampSecondsValue;
|
|
12
|
+
get negInf(): DuckDBTimestampSecondsValue;
|
|
13
|
+
}
|
|
14
|
+
export declare const TIMESTAMP_S: DuckDBTimestampSecondsType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMP_S = exports.DuckDBTimestampSecondsType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampSecondsType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_S, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBTimestampSecondsType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBTimestampSecondsType(alias) : DuckDBTimestampSecondsType.instance;
|
|
14
|
+
}
|
|
15
|
+
get epoch() {
|
|
16
|
+
return values_1.DuckDBTimestampSecondsValue.Epoch;
|
|
17
|
+
}
|
|
18
|
+
get max() {
|
|
19
|
+
return values_1.DuckDBTimestampSecondsValue.Max;
|
|
20
|
+
}
|
|
21
|
+
get min() {
|
|
22
|
+
return values_1.DuckDBTimestampSecondsValue.Min;
|
|
23
|
+
}
|
|
24
|
+
get posInf() {
|
|
25
|
+
return values_1.DuckDBTimestampSecondsValue.PosInf;
|
|
26
|
+
}
|
|
27
|
+
get negInf() {
|
|
28
|
+
return values_1.DuckDBTimestampSecondsValue.NegInf;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DuckDBTimestampSecondsType = DuckDBTimestampSecondsType;
|
|
32
|
+
exports.TIMESTAMP_S = DuckDBTimestampSecondsType.instance;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampTZNanosecondsValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampTZNanosecondsType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_TZ_NS> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
toString(): string;
|
|
7
|
+
static readonly instance: DuckDBTimestampTZNanosecondsType;
|
|
8
|
+
static create(alias?: string): DuckDBTimestampTZNanosecondsType;
|
|
9
|
+
get epoch(): DuckDBTimestampTZNanosecondsValue;
|
|
10
|
+
get max(): DuckDBTimestampTZNanosecondsValue;
|
|
11
|
+
get min(): DuckDBTimestampTZNanosecondsValue;
|
|
12
|
+
get posInf(): DuckDBTimestampTZNanosecondsValue;
|
|
13
|
+
get negInf(): DuckDBTimestampTZNanosecondsValue;
|
|
14
|
+
}
|
|
15
|
+
export declare const TIMESTAMPTZ_NS: DuckDBTimestampTZNanosecondsType;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMPTZ_NS = exports.DuckDBTimestampTZNanosecondsType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampTZNanosecondsType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_TZ_NS, alias);
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return 'TIMESTAMPTZ_NS';
|
|
13
|
+
}
|
|
14
|
+
static instance = new DuckDBTimestampTZNanosecondsType();
|
|
15
|
+
static create(alias) {
|
|
16
|
+
return alias ? new DuckDBTimestampTZNanosecondsType(alias) : DuckDBTimestampTZNanosecondsType.instance;
|
|
17
|
+
}
|
|
18
|
+
get epoch() {
|
|
19
|
+
return values_1.DuckDBTimestampTZNanosecondsValue.Epoch;
|
|
20
|
+
}
|
|
21
|
+
get max() {
|
|
22
|
+
return values_1.DuckDBTimestampTZNanosecondsValue.Max;
|
|
23
|
+
}
|
|
24
|
+
get min() {
|
|
25
|
+
return values_1.DuckDBTimestampTZNanosecondsValue.Min;
|
|
26
|
+
}
|
|
27
|
+
get posInf() {
|
|
28
|
+
return values_1.DuckDBTimestampTZNanosecondsValue.PosInf;
|
|
29
|
+
}
|
|
30
|
+
get negInf() {
|
|
31
|
+
return values_1.DuckDBTimestampTZNanosecondsValue.NegInf;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.DuckDBTimestampTZNanosecondsType = DuckDBTimestampTZNanosecondsType;
|
|
35
|
+
exports.TIMESTAMPTZ_NS = DuckDBTimestampTZNanosecondsType.instance;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampTZValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampTZType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP_TZ> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
toString(): string;
|
|
7
|
+
static readonly instance: DuckDBTimestampTZType;
|
|
8
|
+
static create(alias?: string): DuckDBTimestampTZType;
|
|
9
|
+
get epoch(): DuckDBTimestampTZValue;
|
|
10
|
+
get max(): DuckDBTimestampTZValue;
|
|
11
|
+
get min(): DuckDBTimestampTZValue;
|
|
12
|
+
get posInf(): DuckDBTimestampTZValue;
|
|
13
|
+
get negInf(): DuckDBTimestampTZValue;
|
|
14
|
+
}
|
|
15
|
+
export declare const TIMESTAMPTZ: DuckDBTimestampTZType;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMPTZ = exports.DuckDBTimestampTZType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampTZType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP_TZ, alias);
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return 'TIMESTAMP WITH TIME ZONE';
|
|
13
|
+
}
|
|
14
|
+
static instance = new DuckDBTimestampTZType();
|
|
15
|
+
static create(alias) {
|
|
16
|
+
return alias ? new DuckDBTimestampTZType(alias) : DuckDBTimestampTZType.instance;
|
|
17
|
+
}
|
|
18
|
+
get epoch() {
|
|
19
|
+
return values_1.DuckDBTimestampTZValue.Epoch;
|
|
20
|
+
}
|
|
21
|
+
get max() {
|
|
22
|
+
return values_1.DuckDBTimestampTZValue.Max;
|
|
23
|
+
}
|
|
24
|
+
get min() {
|
|
25
|
+
return values_1.DuckDBTimestampTZValue.Min;
|
|
26
|
+
}
|
|
27
|
+
get posInf() {
|
|
28
|
+
return values_1.DuckDBTimestampTZValue.PosInf;
|
|
29
|
+
}
|
|
30
|
+
get negInf() {
|
|
31
|
+
return values_1.DuckDBTimestampTZValue.NegInf;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.DuckDBTimestampTZType = DuckDBTimestampTZType;
|
|
35
|
+
exports.TIMESTAMPTZ = DuckDBTimestampTZType.instance;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBTimestampValue } from '../values';
|
|
4
|
+
export declare class DuckDBTimestampType extends BaseDuckDBType<DuckDBTypeId.TIMESTAMP> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
static readonly instance: DuckDBTimestampType;
|
|
7
|
+
static create(alias?: string): DuckDBTimestampType;
|
|
8
|
+
get epoch(): DuckDBTimestampValue;
|
|
9
|
+
get max(): DuckDBTimestampValue;
|
|
10
|
+
get min(): DuckDBTimestampValue;
|
|
11
|
+
get posInf(): DuckDBTimestampValue;
|
|
12
|
+
get negInf(): DuckDBTimestampValue;
|
|
13
|
+
}
|
|
14
|
+
export declare const TIMESTAMP: DuckDBTimestampType;
|
|
15
|
+
export type DuckDBTimestampMicrosecondsType = DuckDBTimestampType;
|
|
16
|
+
export declare const DuckDBTimestampMicrosecondsType: typeof DuckDBTimestampType;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DuckDBTimestampMicrosecondsType = exports.TIMESTAMP = exports.DuckDBTimestampType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBTimestampType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TIMESTAMP, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBTimestampType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBTimestampType(alias) : DuckDBTimestampType.instance;
|
|
14
|
+
}
|
|
15
|
+
get epoch() {
|
|
16
|
+
return values_1.DuckDBTimestampValue.Epoch;
|
|
17
|
+
}
|
|
18
|
+
get max() {
|
|
19
|
+
return values_1.DuckDBTimestampValue.Max;
|
|
20
|
+
}
|
|
21
|
+
get min() {
|
|
22
|
+
return values_1.DuckDBTimestampValue.Min;
|
|
23
|
+
}
|
|
24
|
+
get posInf() {
|
|
25
|
+
return values_1.DuckDBTimestampValue.PosInf;
|
|
26
|
+
}
|
|
27
|
+
get negInf() {
|
|
28
|
+
return values_1.DuckDBTimestampValue.NegInf;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DuckDBTimestampType = DuckDBTimestampType;
|
|
32
|
+
exports.TIMESTAMP = DuckDBTimestampType.instance;
|
|
33
|
+
exports.DuckDBTimestampMicrosecondsType = DuckDBTimestampType;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBTinyIntType extends BaseDuckDBType<DuckDBTypeId.TINYINT> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBTinyIntType;
|
|
6
|
+
static create(alias?: string): DuckDBTinyIntType;
|
|
7
|
+
static readonly Max: number;
|
|
8
|
+
static readonly Min: number;
|
|
9
|
+
get max(): number;
|
|
10
|
+
get min(): number;
|
|
11
|
+
}
|
|
12
|
+
export declare const TINYINT: DuckDBTinyIntType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TINYINT = exports.DuckDBTinyIntType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBTinyIntType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.TINYINT, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBTinyIntType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBTinyIntType(alias) : DuckDBTinyIntType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2 ** 7 - 1;
|
|
15
|
+
static Min = -(2 ** 7);
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBTinyIntType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBTinyIntType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBTinyIntType = DuckDBTinyIntType;
|
|
24
|
+
exports.TINYINT = DuckDBTinyIntType.instance;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { DuckDBAnyType } from './DuckDBAnyType';
|
|
2
|
+
import type { DuckDBArrayType } from './DuckDBArrayType';
|
|
3
|
+
import type { DuckDBBigIntType } from './DuckDBBigIntType';
|
|
4
|
+
import type { DuckDBBigNumType } from './DuckDBBigNumType';
|
|
5
|
+
import type { DuckDBBitType } from './DuckDBBitType';
|
|
6
|
+
import type { DuckDBBlobType } from './DuckDBBlobType';
|
|
7
|
+
import type { DuckDBBooleanType } from './DuckDBBooleanType';
|
|
8
|
+
import type { DuckDBDateType } from './DuckDBDateType';
|
|
9
|
+
import type { DuckDBDecimalType } from './DuckDBDecimalType';
|
|
10
|
+
import type { DuckDBDoubleType } from './DuckDBDoubleType';
|
|
11
|
+
import type { DuckDBEnumType } from './DuckDBEnumType';
|
|
12
|
+
import type { DuckDBFloatType } from './DuckDBFloatType';
|
|
13
|
+
import type { DuckDBGeometryType } from './DuckDBGeometryType';
|
|
14
|
+
import type { DuckDBHugeIntType } from './DuckDBHugeIntType';
|
|
15
|
+
import type { DuckDBIntegerLiteralType } from './DuckDBIntegerLiteralType';
|
|
16
|
+
import type { DuckDBIntegerType } from './DuckDBIntegerType';
|
|
17
|
+
import type { DuckDBIntervalType } from './DuckDBIntervalType';
|
|
18
|
+
import type { DuckDBListType } from './DuckDBListType';
|
|
19
|
+
import type { DuckDBMapType } from './DuckDBMapType';
|
|
20
|
+
import type { DuckDBSQLNullType } from './DuckDBSQLNullType';
|
|
21
|
+
import type { DuckDBSmallIntType } from './DuckDBSmallIntType';
|
|
22
|
+
import type { DuckDBStringLiteralType } from './DuckDBStringLiteralType';
|
|
23
|
+
import type { DuckDBStructType } from './DuckDBStructType';
|
|
24
|
+
import type { DuckDBTimeNSType } from './DuckDBTimeNSType';
|
|
25
|
+
import type { DuckDBTimeTZType } from './DuckDBTimeTZType';
|
|
26
|
+
import type { DuckDBTimeType } from './DuckDBTimeType';
|
|
27
|
+
import type { DuckDBTimestampMillisecondsType } from './DuckDBTimestampMillisecondsType';
|
|
28
|
+
import type { DuckDBTimestampNanosecondsType } from './DuckDBTimestampNanosecondsType';
|
|
29
|
+
import type { DuckDBTimestampSecondsType } from './DuckDBTimestampSecondsType';
|
|
30
|
+
import type { DuckDBTimestampTZType } from './DuckDBTimestampTZType';
|
|
31
|
+
import type { DuckDBTimestampTZNanosecondsType } from './DuckDBTimestampTZNanosecondsType';
|
|
32
|
+
import type { DuckDBTimestampType } from './DuckDBTimestampType';
|
|
33
|
+
import type { DuckDBTinyIntType } from './DuckDBTinyIntType';
|
|
34
|
+
import type { DuckDBUnionType } from './DuckDBUnionType';
|
|
35
|
+
import type { DuckDBUBigIntType } from './DuckDBUBigIntType';
|
|
36
|
+
import type { DuckDBUHugeIntType } from './DuckDBUHugeIntType';
|
|
37
|
+
import type { DuckDBUIntegerType } from './DuckDBUIntegerType';
|
|
38
|
+
import type { DuckDBUSmallIntType } from './DuckDBUSmallIntType';
|
|
39
|
+
import type { DuckDBUTinyIntType } from './DuckDBUTinyIntType';
|
|
40
|
+
import type { DuckDBUUIDType } from './DuckDBUUIDType';
|
|
41
|
+
import type { DuckDBVarCharType } from './DuckDBVarCharType';
|
|
42
|
+
import type { DuckDBVariantType } from './DuckDBVariantType';
|
|
43
|
+
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 | DuckDBBigNumType | DuckDBSQLNullType | DuckDBStringLiteralType | DuckDBIntegerLiteralType | DuckDBTimeNSType | DuckDBGeometryType | DuckDBVariantType | DuckDBTimestampTZNanosecondsType;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBUBigIntType extends BaseDuckDBType<DuckDBTypeId.UBIGINT> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBUBigIntType;
|
|
6
|
+
static create(alias?: string): DuckDBUBigIntType;
|
|
7
|
+
static readonly Max: bigint;
|
|
8
|
+
static readonly Min: bigint;
|
|
9
|
+
get max(): bigint;
|
|
10
|
+
get min(): bigint;
|
|
11
|
+
}
|
|
12
|
+
export declare const UBIGINT: DuckDBUBigIntType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UBIGINT = exports.DuckDBUBigIntType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBUBigIntType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.UBIGINT, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBUBigIntType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBUBigIntType(alias) : DuckDBUBigIntType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2n ** 64n - 1n;
|
|
15
|
+
static Min = 0n;
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBUBigIntType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBUBigIntType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBUBigIntType = DuckDBUBigIntType;
|
|
24
|
+
exports.UBIGINT = DuckDBUBigIntType.instance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBUHugeIntType extends BaseDuckDBType<DuckDBTypeId.UHUGEINT> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBUHugeIntType;
|
|
6
|
+
static create(alias?: string): DuckDBUHugeIntType;
|
|
7
|
+
static readonly Max: bigint;
|
|
8
|
+
static readonly Min: bigint;
|
|
9
|
+
get max(): bigint;
|
|
10
|
+
get min(): bigint;
|
|
11
|
+
}
|
|
12
|
+
export declare const UHUGEINT: DuckDBUHugeIntType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UHUGEINT = exports.DuckDBUHugeIntType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBUHugeIntType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.UHUGEINT, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBUHugeIntType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBUHugeIntType(alias) : DuckDBUHugeIntType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2n ** 128n - 1n;
|
|
15
|
+
static Min = 0n;
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBUHugeIntType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBUHugeIntType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBUHugeIntType = DuckDBUHugeIntType;
|
|
24
|
+
exports.UHUGEINT = DuckDBUHugeIntType.instance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBUIntegerType extends BaseDuckDBType<DuckDBTypeId.UINTEGER> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBUIntegerType;
|
|
6
|
+
static create(alias?: string): DuckDBUIntegerType;
|
|
7
|
+
static readonly Max: number;
|
|
8
|
+
static readonly Min = 0;
|
|
9
|
+
get max(): number;
|
|
10
|
+
get min(): number;
|
|
11
|
+
}
|
|
12
|
+
export declare const UINTEGER: DuckDBUIntegerType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UINTEGER = exports.DuckDBUIntegerType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBUIntegerType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.UINTEGER, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBUIntegerType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBUIntegerType(alias) : DuckDBUIntegerType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2 ** 32 - 1;
|
|
15
|
+
static Min = 0;
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBUIntegerType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBUIntegerType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBUIntegerType = DuckDBUIntegerType;
|
|
24
|
+
exports.UINTEGER = DuckDBUIntegerType.instance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBUSmallIntType extends BaseDuckDBType<DuckDBTypeId.USMALLINT> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBUSmallIntType;
|
|
6
|
+
static create(alias?: string): DuckDBUSmallIntType;
|
|
7
|
+
static readonly Max: number;
|
|
8
|
+
static readonly Min = 0;
|
|
9
|
+
get max(): number;
|
|
10
|
+
get min(): number;
|
|
11
|
+
}
|
|
12
|
+
export declare const USMALLINT: DuckDBUSmallIntType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.USMALLINT = exports.DuckDBUSmallIntType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBUSmallIntType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.USMALLINT, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBUSmallIntType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBUSmallIntType(alias) : DuckDBUSmallIntType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2 ** 16 - 1;
|
|
15
|
+
static Min = 0;
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBUSmallIntType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBUSmallIntType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBUSmallIntType = DuckDBUSmallIntType;
|
|
24
|
+
exports.USMALLINT = DuckDBUSmallIntType.instance;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
export declare class DuckDBUTinyIntType extends BaseDuckDBType<DuckDBTypeId.UTINYINT> {
|
|
4
|
+
constructor(alias?: string);
|
|
5
|
+
static readonly instance: DuckDBUTinyIntType;
|
|
6
|
+
static create(alias?: string): DuckDBUTinyIntType;
|
|
7
|
+
static readonly Max: number;
|
|
8
|
+
static readonly Min = 0;
|
|
9
|
+
get max(): number;
|
|
10
|
+
get min(): number;
|
|
11
|
+
}
|
|
12
|
+
export declare const UTINYINT: DuckDBUTinyIntType;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UTINYINT = exports.DuckDBUTinyIntType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
class DuckDBUTinyIntType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
7
|
+
constructor(alias) {
|
|
8
|
+
super(DuckDBTypeId_1.DuckDBTypeId.UTINYINT, alias);
|
|
9
|
+
}
|
|
10
|
+
static instance = new DuckDBUTinyIntType();
|
|
11
|
+
static create(alias) {
|
|
12
|
+
return alias ? new DuckDBUTinyIntType(alias) : DuckDBUTinyIntType.instance;
|
|
13
|
+
}
|
|
14
|
+
static Max = 2 ** 8 - 1;
|
|
15
|
+
static Min = 0;
|
|
16
|
+
get max() {
|
|
17
|
+
return DuckDBUTinyIntType.Max;
|
|
18
|
+
}
|
|
19
|
+
get min() {
|
|
20
|
+
return DuckDBUTinyIntType.Min;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DuckDBUTinyIntType = DuckDBUTinyIntType;
|
|
24
|
+
exports.UTINYINT = DuckDBUTinyIntType.instance;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseDuckDBType } from './BaseDuckDBType';
|
|
2
|
+
import { DuckDBTypeId } from '../DuckDBTypeId';
|
|
3
|
+
import { DuckDBUUIDValue } from '../values';
|
|
4
|
+
export declare class DuckDBUUIDType extends BaseDuckDBType<DuckDBTypeId.UUID> {
|
|
5
|
+
constructor(alias?: string);
|
|
6
|
+
static readonly instance: DuckDBUUIDType;
|
|
7
|
+
static create(alias?: string): DuckDBUUIDType;
|
|
8
|
+
get max(): DuckDBUUIDValue;
|
|
9
|
+
get min(): DuckDBUUIDValue;
|
|
10
|
+
}
|
|
11
|
+
export declare const UUID: DuckDBUUIDType;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UUID = exports.DuckDBUUIDType = void 0;
|
|
4
|
+
const BaseDuckDBType_1 = require("./BaseDuckDBType");
|
|
5
|
+
const DuckDBTypeId_1 = require("../DuckDBTypeId");
|
|
6
|
+
const values_1 = require("../values");
|
|
7
|
+
class DuckDBUUIDType extends BaseDuckDBType_1.BaseDuckDBType {
|
|
8
|
+
constructor(alias) {
|
|
9
|
+
super(DuckDBTypeId_1.DuckDBTypeId.UUID, alias);
|
|
10
|
+
}
|
|
11
|
+
static instance = new DuckDBUUIDType();
|
|
12
|
+
static create(alias) {
|
|
13
|
+
return alias ? new DuckDBUUIDType(alias) : DuckDBUUIDType.instance;
|
|
14
|
+
}
|
|
15
|
+
get max() {
|
|
16
|
+
return values_1.DuckDBUUIDValue.Max;
|
|
17
|
+
}
|
|
18
|
+
get min() {
|
|
19
|
+
return values_1.DuckDBUUIDValue.Min;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DuckDBUUIDType = DuckDBUUIDType;
|
|
23
|
+
exports.UUID = DuckDBUUIDType.instance;
|