postgrejs 2.22.9 → 2.23.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/CHANGELOG.md +8 -1
- package/{esm/connection → connection}/bind-param.js +2 -0
- package/{esm/connection → connection}/connection.js +4 -2
- package/{esm/connection → connection}/cursor.js +8 -3
- package/{esm/connection → connection}/intl-connection.js +6 -3
- package/{esm/connection → connection}/pool.js +4 -1
- package/{esm/connection → connection}/portal.js +3 -1
- package/{esm/connection → connection}/prepared-statement.js +6 -3
- package/{esm/constants.js → constants.js} +1 -1
- package/{esm/data-type-map.js → data-type-map.js} +2 -2
- package/package.json +12 -31
- package/{esm/protocol → protocol}/backend.js +1 -0
- package/{esm/protocol → protocol}/buffer-reader.js +2 -1
- package/{esm/protocol → protocol}/database-error.js +16 -0
- package/{esm/protocol → protocol}/frontend.js +1 -0
- package/{esm/protocol → protocol}/pg-socket.js +9 -3
- package/{esm/protocol → protocol}/smart-buffer.js +9 -5
- package/{esm/util → util}/bigint-methods.js +1 -0
- package/cjs/connection/bind-param.js +0 -10
- package/cjs/connection/connection.js +0 -295
- package/cjs/connection/cursor.js +0 -91
- package/cjs/connection/intl-connection.js +0 -258
- package/cjs/connection/pool.js +0 -236
- package/cjs/connection/portal.js +0 -157
- package/cjs/connection/prepared-statement.js +0 -226
- package/cjs/constants.js +0 -249
- package/cjs/data-type-map.js +0 -131
- package/cjs/data-types/bool-type.js +0 -33
- package/cjs/data-types/box-type.js +0 -52
- package/cjs/data-types/bytea-type.js +0 -28
- package/cjs/data-types/char-type.js +0 -27
- package/cjs/data-types/circle-type.js +0 -51
- package/cjs/data-types/date-type.js +0 -75
- package/cjs/data-types/float4-type.js +0 -25
- package/cjs/data-types/float8-type.js +0 -25
- package/cjs/data-types/int2-type.js +0 -26
- package/cjs/data-types/int2-vector-type.js +0 -42
- package/cjs/data-types/int4-type.js +0 -28
- package/cjs/data-types/int8-type.js +0 -36
- package/cjs/data-types/json-type.js +0 -40
- package/cjs/data-types/jsonb-type.js +0 -44
- package/cjs/data-types/lseg-type.js +0 -55
- package/cjs/data-types/numeric-type.js +0 -125
- package/cjs/data-types/oid-type.js +0 -32
- package/cjs/data-types/point-type.js +0 -42
- package/cjs/data-types/time-type.js +0 -66
- package/cjs/data-types/timestamp-type.js +0 -89
- package/cjs/data-types/timestamptz-type.js +0 -76
- package/cjs/data-types/uuid-type.js +0 -39
- package/cjs/data-types/varchar-type.js +0 -27
- package/cjs/index.js +0 -28
- package/cjs/interfaces/command-result.js +0 -2
- package/cjs/interfaces/data-mapping-options.js +0 -2
- package/cjs/interfaces/data-type.js +0 -2
- package/cjs/interfaces/database-connection-params.js +0 -2
- package/cjs/interfaces/field-info.js +0 -2
- package/cjs/interfaces/query-options.js +0 -2
- package/cjs/interfaces/query-result.js +0 -2
- package/cjs/interfaces/script-execute-options.js +0 -2
- package/cjs/interfaces/script-result.js +0 -2
- package/cjs/interfaces/statement-prepare-options.js +0 -2
- package/cjs/package.json +0 -3
- package/cjs/protocol/backend.js +0 -262
- package/cjs/protocol/buffer-reader.js +0 -78
- package/cjs/protocol/database-error.js +0 -17
- package/cjs/protocol/frontend.js +0 -255
- package/cjs/protocol/pg-socket.js +0 -367
- package/cjs/protocol/protocol.js +0 -71
- package/cjs/protocol/sasl.js +0 -108
- package/cjs/protocol/smart-buffer.js +0 -178
- package/cjs/safe-event-emitter.js +0 -17
- package/cjs/tsconfig-build-cjs.tsbuildinfo +0 -1
- package/cjs/types.js +0 -2
- package/cjs/util/array-calculatedim.js +0 -18
- package/cjs/util/bigint-methods.js +0 -44
- package/cjs/util/config-from-env.js +0 -29
- package/cjs/util/connection-config.js +0 -61
- package/cjs/util/convert-row-to-object.js +0 -12
- package/cjs/util/decode-binaryarray.js +0 -38
- package/cjs/util/encode-binaryarray.js +0 -44
- package/cjs/util/escape-literal.js +0 -26
- package/cjs/util/fast-parseint.js +0 -31
- package/cjs/util/get-parsers.js +0 -41
- package/cjs/util/parse-array.js +0 -60
- package/cjs/util/parse-datetime.js +0 -37
- package/cjs/util/parse-row.js +0 -11
- package/cjs/util/parse-time.js +0 -30
- package/cjs/util/stringify-arrayliteral.js +0 -37
- package/cjs/util/stringify-for-sql.js +0 -29
- package/cjs/util/wrap-row-description.js +0 -34
- package/esm/package.json +0 -3
- package/types/index.d.cts +0 -25
- /package/{types/connection → connection}/bind-param.d.ts +0 -0
- /package/{types/connection → connection}/connection.d.ts +0 -0
- /package/{types/connection → connection}/cursor.d.ts +0 -0
- /package/{types/connection → connection}/intl-connection.d.ts +0 -0
- /package/{types/connection → connection}/pool.d.ts +0 -0
- /package/{types/connection → connection}/portal.d.ts +0 -0
- /package/{types/connection → connection}/prepared-statement.d.ts +0 -0
- /package/{types/constants.d.ts → constants.d.ts} +0 -0
- /package/{types/data-type-map.d.ts → data-type-map.d.ts} +0 -0
- /package/{types/data-types → data-types}/bool-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/bool-type.js +0 -0
- /package/{types/data-types → data-types}/box-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/box-type.js +0 -0
- /package/{types/data-types → data-types}/bytea-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/bytea-type.js +0 -0
- /package/{types/data-types → data-types}/char-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/char-type.js +0 -0
- /package/{types/data-types → data-types}/circle-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/circle-type.js +0 -0
- /package/{types/data-types → data-types}/date-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/date-type.js +0 -0
- /package/{types/data-types → data-types}/float4-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/float4-type.js +0 -0
- /package/{types/data-types → data-types}/float8-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/float8-type.js +0 -0
- /package/{types/data-types → data-types}/int2-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/int2-type.js +0 -0
- /package/{types/data-types → data-types}/int2-vector-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/int2-vector-type.js +0 -0
- /package/{types/data-types → data-types}/int4-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/int4-type.js +0 -0
- /package/{types/data-types → data-types}/int8-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/int8-type.js +0 -0
- /package/{types/data-types → data-types}/json-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/json-type.js +0 -0
- /package/{types/data-types → data-types}/jsonb-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/jsonb-type.js +0 -0
- /package/{types/data-types → data-types}/lseg-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/lseg-type.js +0 -0
- /package/{types/data-types → data-types}/numeric-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/numeric-type.js +0 -0
- /package/{types/data-types → data-types}/oid-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/oid-type.js +0 -0
- /package/{types/data-types → data-types}/point-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/point-type.js +0 -0
- /package/{types/data-types → data-types}/time-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/time-type.js +0 -0
- /package/{types/data-types → data-types}/timestamp-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/timestamp-type.js +0 -0
- /package/{types/data-types → data-types}/timestamptz-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/timestamptz-type.js +0 -0
- /package/{types/data-types → data-types}/uuid-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/uuid-type.js +0 -0
- /package/{types/data-types → data-types}/varchar-type.d.ts +0 -0
- /package/{esm/data-types → data-types}/varchar-type.js +0 -0
- /package/{types/index.d.ts → index.d.ts} +0 -0
- /package/{esm/index.js → index.js} +0 -0
- /package/{types/interfaces → interfaces}/command-result.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/command-result.js +0 -0
- /package/{types/interfaces → interfaces}/data-mapping-options.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/data-mapping-options.js +0 -0
- /package/{types/interfaces → interfaces}/data-type.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/data-type.js +0 -0
- /package/{types/interfaces → interfaces}/database-connection-params.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/database-connection-params.js +0 -0
- /package/{types/interfaces → interfaces}/field-info.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/field-info.js +0 -0
- /package/{types/interfaces → interfaces}/query-options.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/query-options.js +0 -0
- /package/{types/interfaces → interfaces}/query-result.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/query-result.js +0 -0
- /package/{types/interfaces → interfaces}/script-execute-options.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/script-execute-options.js +0 -0
- /package/{types/interfaces → interfaces}/script-result.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/script-result.js +0 -0
- /package/{types/interfaces → interfaces}/statement-prepare-options.d.ts +0 -0
- /package/{esm/interfaces → interfaces}/statement-prepare-options.js +0 -0
- /package/{types/protocol → protocol}/backend.d.ts +0 -0
- /package/{types/protocol → protocol}/buffer-reader.d.ts +0 -0
- /package/{types/protocol → protocol}/database-error.d.ts +0 -0
- /package/{types/protocol → protocol}/frontend.d.ts +0 -0
- /package/{types/protocol → protocol}/pg-socket.d.ts +0 -0
- /package/{types/protocol → protocol}/protocol.d.ts +0 -0
- /package/{esm/protocol → protocol}/protocol.js +0 -0
- /package/{types/protocol → protocol}/sasl.d.ts +0 -0
- /package/{esm/protocol → protocol}/sasl.js +0 -0
- /package/{types/protocol → protocol}/smart-buffer.d.ts +0 -0
- /package/{types/safe-event-emitter.d.ts → safe-event-emitter.d.ts} +0 -0
- /package/{esm/safe-event-emitter.js → safe-event-emitter.js} +0 -0
- /package/{types/types.d.ts → types.d.ts} +0 -0
- /package/{esm/types.js → types.js} +0 -0
- /package/{types/util → util}/array-calculatedim.d.ts +0 -0
- /package/{esm/util → util}/array-calculatedim.js +0 -0
- /package/{types/util → util}/bigint-methods.d.ts +0 -0
- /package/{types/util → util}/config-from-env.d.ts +0 -0
- /package/{esm/util → util}/config-from-env.js +0 -0
- /package/{types/util → util}/connection-config.d.ts +0 -0
- /package/{esm/util → util}/connection-config.js +0 -0
- /package/{types/util → util}/convert-row-to-object.d.ts +0 -0
- /package/{esm/util → util}/convert-row-to-object.js +0 -0
- /package/{types/util → util}/decode-binaryarray.d.ts +0 -0
- /package/{esm/util → util}/decode-binaryarray.js +0 -0
- /package/{types/util → util}/encode-binaryarray.d.ts +0 -0
- /package/{esm/util → util}/encode-binaryarray.js +0 -0
- /package/{types/util → util}/escape-literal.d.ts +0 -0
- /package/{esm/util → util}/escape-literal.js +0 -0
- /package/{types/util → util}/fast-parseint.d.ts +0 -0
- /package/{esm/util → util}/fast-parseint.js +0 -0
- /package/{types/util → util}/get-parsers.d.ts +0 -0
- /package/{esm/util → util}/get-parsers.js +0 -0
- /package/{types/util → util}/parse-array.d.ts +0 -0
- /package/{esm/util → util}/parse-array.js +0 -0
- /package/{types/util → util}/parse-datetime.d.ts +0 -0
- /package/{esm/util → util}/parse-datetime.js +0 -0
- /package/{types/util → util}/parse-row.d.ts +0 -0
- /package/{esm/util → util}/parse-row.js +0 -0
- /package/{types/util → util}/parse-time.d.ts +0 -0
- /package/{esm/util → util}/parse-time.js +0 -0
- /package/{types/util → util}/stringify-arrayliteral.d.ts +0 -0
- /package/{esm/util → util}/stringify-arrayliteral.js +0 -0
- /package/{types/util → util}/stringify-for-sql.d.ts +0 -0
- /package/{esm/util → util}/stringify-for-sql.js +0 -0
- /package/{types/util → util}/wrap-row-description.d.ts +0 -0
- /package/{esm/util → util}/wrap-row-description.js +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayLsegType = exports.LsegType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const LSEG_PATTERN1 = /^\[ *\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\) *, *\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\) *]$/;
|
|
6
|
-
const LSEG_PATTERN2 = /^\( *\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\) *, *\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\) *\)$/;
|
|
7
|
-
const LSEG_PATTERN3 = /^\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\) *, *\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\)$/;
|
|
8
|
-
const LSEG_PATTERN4 = /^(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *, *(-?\d+\.?\d*)$/;
|
|
9
|
-
exports.LsegType = {
|
|
10
|
-
name: 'lseg',
|
|
11
|
-
oid: constants_js_1.DataTypeOIDs.lseg,
|
|
12
|
-
jsType: 'object',
|
|
13
|
-
parseBinary(v) {
|
|
14
|
-
return {
|
|
15
|
-
x1: v.readDoubleBE(0),
|
|
16
|
-
y1: v.readDoubleBE(8),
|
|
17
|
-
x2: v.readDoubleBE(16),
|
|
18
|
-
y2: v.readDoubleBE(24),
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
encodeBinary(buf, v) {
|
|
22
|
-
buf.writeDoubleBE(v.x1);
|
|
23
|
-
buf.writeDoubleBE(v.y1);
|
|
24
|
-
buf.writeDoubleBE(v.x2);
|
|
25
|
-
buf.writeDoubleBE(v.y2);
|
|
26
|
-
},
|
|
27
|
-
parseText(v) {
|
|
28
|
-
const m = v.match(LSEG_PATTERN1) ||
|
|
29
|
-
v.match(LSEG_PATTERN2) ||
|
|
30
|
-
v.match(LSEG_PATTERN3) ||
|
|
31
|
-
v.match(LSEG_PATTERN4);
|
|
32
|
-
if (!m)
|
|
33
|
-
return undefined;
|
|
34
|
-
return {
|
|
35
|
-
x1: parseFloat(m[1]),
|
|
36
|
-
y1: parseFloat(m[2]),
|
|
37
|
-
x2: parseFloat(m[3]),
|
|
38
|
-
y2: parseFloat(m[4]),
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
isType(v) {
|
|
42
|
-
return (typeof v === 'object' &&
|
|
43
|
-
Object.keys(v).length === 4 &&
|
|
44
|
-
typeof v.x1 === 'number' &&
|
|
45
|
-
typeof v.y1 === 'number' &&
|
|
46
|
-
typeof v.x2 === 'number' &&
|
|
47
|
-
typeof v.y2 === 'number');
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
exports.ArrayLsegType = {
|
|
51
|
-
...exports.LsegType,
|
|
52
|
-
name: '_lseg',
|
|
53
|
-
oid: constants_js_1.DataTypeOIDs._lseg,
|
|
54
|
-
elementsOID: constants_js_1.DataTypeOIDs.lseg,
|
|
55
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayNumericType = exports.NumericType = void 0;
|
|
4
|
-
exports.numberBytesToString = numberBytesToString;
|
|
5
|
-
const constants_js_1 = require("../constants.js");
|
|
6
|
-
const NUMERIC_NEG = 0x4000;
|
|
7
|
-
const NUMERIC_NAN = 0xc000;
|
|
8
|
-
const DEC_DIGITS = 4;
|
|
9
|
-
const ROUND_POWERS = [0, 1000, 100, 10];
|
|
10
|
-
exports.NumericType = {
|
|
11
|
-
name: 'numeric',
|
|
12
|
-
oid: constants_js_1.DataTypeOIDs.numeric,
|
|
13
|
-
jsType: 'number',
|
|
14
|
-
parseBinary(v) {
|
|
15
|
-
const len = v.readInt16BE();
|
|
16
|
-
const weight = v.readInt16BE(2);
|
|
17
|
-
const sign = v.readInt16BE(4);
|
|
18
|
-
const scale = v.readInt16BE(6);
|
|
19
|
-
if (sign === NUMERIC_NAN)
|
|
20
|
-
return NaN;
|
|
21
|
-
const digits = [];
|
|
22
|
-
for (let i = 0; i < len; i++) {
|
|
23
|
-
digits[i] = v.readInt16BE(8 + i * 2);
|
|
24
|
-
}
|
|
25
|
-
const numString = numberBytesToString(digits, scale, weight, sign);
|
|
26
|
-
return parseFloat(numString);
|
|
27
|
-
},
|
|
28
|
-
encodeText(v) {
|
|
29
|
-
const n = typeof v === 'number' ? v : parseFloat(v);
|
|
30
|
-
return '' + n;
|
|
31
|
-
},
|
|
32
|
-
parseText: parseFloat,
|
|
33
|
-
isType(v) {
|
|
34
|
-
return typeof v === 'number';
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
exports.ArrayNumericType = {
|
|
38
|
-
...exports.NumericType,
|
|
39
|
-
name: '_numeric',
|
|
40
|
-
oid: constants_js_1.DataTypeOIDs._numeric,
|
|
41
|
-
elementsOID: constants_js_1.DataTypeOIDs.numeric,
|
|
42
|
-
};
|
|
43
|
-
/* https://github.com/pgjdbc/pgjdbc/blob/3eca3a76aa4a04cb28cb960ed674cb67db30b5e3/pgjdbc/src/main/java/org/postgresql/util/ByteConverter.java */
|
|
44
|
-
/**
|
|
45
|
-
* Convert a number from binary representation to text representation.
|
|
46
|
-
* @param digits array of shorts that can be decoded as the number String
|
|
47
|
-
* @param scale the scale of the number binary representation
|
|
48
|
-
* @param weight the weight of the number binary representation
|
|
49
|
-
* @param sign the sign of the number
|
|
50
|
-
* @return String the number as String
|
|
51
|
-
*/
|
|
52
|
-
function numberBytesToString(digits, scale, weight, sign) {
|
|
53
|
-
let i;
|
|
54
|
-
let d;
|
|
55
|
-
/*
|
|
56
|
-
* Allocate space for the result.
|
|
57
|
-
*
|
|
58
|
-
* i is set to the # of decimal digits before decimal point.
|
|
59
|
-
* dscale is the # of decimal digits we will print after decimal point.
|
|
60
|
-
* We may generate as many as DEC_DIGITS-1 excess digits at the end, and in addition we
|
|
61
|
-
* need room for sign, decimal point, null terminator.
|
|
62
|
-
*/
|
|
63
|
-
i = (weight + 1) * DEC_DIGITS;
|
|
64
|
-
if (i <= 0)
|
|
65
|
-
i = 1;
|
|
66
|
-
/*
|
|
67
|
-
* Output a dash for negative values
|
|
68
|
-
*/
|
|
69
|
-
let out = sign === NUMERIC_NEG ? '-' : '';
|
|
70
|
-
/*
|
|
71
|
-
* Output all digits before the decimal point
|
|
72
|
-
*/
|
|
73
|
-
if (weight < 0) {
|
|
74
|
-
d = weight + 1;
|
|
75
|
-
out += '0';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
for (d = 0; d <= weight; d++) {
|
|
79
|
-
/* In the first digit, suppress extra leading decimal zeroes */
|
|
80
|
-
out += digitToString(d, digits, d !== 0);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
/*
|
|
84
|
-
* If requested, output a decimal point and all the digits that follow it.
|
|
85
|
-
* We initially put out a multiple of DEC_DIGITS digits, then truncate if
|
|
86
|
-
* needed.
|
|
87
|
-
*/
|
|
88
|
-
if (scale > 0) {
|
|
89
|
-
out += '.';
|
|
90
|
-
for (i = 0; i < scale; d++, i += DEC_DIGITS) {
|
|
91
|
-
out += digitToString(d, digits, true);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const extra = (i - scale) % DEC_DIGITS;
|
|
95
|
-
return out.substr(0, out.length - extra);
|
|
96
|
-
}
|
|
97
|
-
/* https://github.com/pgjdbc/pgjdbc/blob/3eca3a76aa4a04cb28cb960ed674cb67db30b5e3/pgjdbc/src/main/java/org/postgresql/util/ByteConverter.java */
|
|
98
|
-
/**
|
|
99
|
-
* Convert a number from binary representation to text representation.
|
|
100
|
-
* @param idx index of the digit to be converted in the digits array
|
|
101
|
-
* @param digits array of shorts that can be decoded as the number String
|
|
102
|
-
* @param alwaysPutIt a flag that indicate whether or not to put the digit char even if it is zero
|
|
103
|
-
* @return String the number as String
|
|
104
|
-
*/
|
|
105
|
-
function digitToString(idx, digits, alwaysPutIt) {
|
|
106
|
-
let out = '';
|
|
107
|
-
let dig = idx >= 0 && idx < digits.length ? digits[idx] : 0;
|
|
108
|
-
// Each dig represents 4 decimal digits (e.g. 9999)
|
|
109
|
-
// If we continue the number, then we need to print 0 as 0000 (alwaysPutIt parameter is true)
|
|
110
|
-
for (let p = 1; p < ROUND_POWERS.length; p++) {
|
|
111
|
-
const pow = ROUND_POWERS[p];
|
|
112
|
-
const d1 = Math.trunc(dig / pow);
|
|
113
|
-
dig -= d1 * pow;
|
|
114
|
-
const putit = d1 > 0;
|
|
115
|
-
if (putit || alwaysPutIt) {
|
|
116
|
-
out += d1;
|
|
117
|
-
// We printed a character, so we need to print the rest of the current digits in dig
|
|
118
|
-
// For instance, we need to keep printing 000 from 1000 even if idx==0 (== it is the very
|
|
119
|
-
// beginning)
|
|
120
|
-
alwaysPutIt = true;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
out += dig;
|
|
124
|
-
return out;
|
|
125
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VectorOidType = exports.ArrayOidType = exports.OidType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const fast_parseint_js_1 = require("../util/fast-parseint.js");
|
|
6
|
-
exports.OidType = {
|
|
7
|
-
name: 'oid',
|
|
8
|
-
oid: constants_js_1.DataTypeOIDs.oid,
|
|
9
|
-
jsType: 'number',
|
|
10
|
-
parseBinary(v) {
|
|
11
|
-
return v.readUInt32BE(0);
|
|
12
|
-
},
|
|
13
|
-
encodeBinary(buf, v) {
|
|
14
|
-
buf.writeUInt32BE((0, fast_parseint_js_1.fastParseInt)(v));
|
|
15
|
-
},
|
|
16
|
-
parseText: fast_parseint_js_1.fastParseInt,
|
|
17
|
-
isType(v) {
|
|
18
|
-
return typeof v === 'number' && Number.isInteger(v) && !!constants_js_1.DataTypeNames[v];
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
exports.ArrayOidType = {
|
|
22
|
-
...exports.OidType,
|
|
23
|
-
name: '_oid',
|
|
24
|
-
oid: constants_js_1.DataTypeOIDs._oid,
|
|
25
|
-
elementsOID: constants_js_1.DataTypeOIDs.oid,
|
|
26
|
-
};
|
|
27
|
-
exports.VectorOidType = {
|
|
28
|
-
...exports.OidType,
|
|
29
|
-
name: '_oidvector',
|
|
30
|
-
oid: constants_js_1.DataTypeOIDs.oidvector,
|
|
31
|
-
elementsOID: constants_js_1.DataTypeOIDs.oid,
|
|
32
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayPointType = exports.PointType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const POINT_PATTERN1 = /^\( *(-?\d+\.?\d*) *, *(-?\d+\.?\d*) *\)$/;
|
|
6
|
-
const POINT_PATTERN2 = /^(-?\d+\.?\d*) *, *(-?\d+\.?\d*)$/;
|
|
7
|
-
exports.PointType = {
|
|
8
|
-
name: 'point',
|
|
9
|
-
oid: constants_js_1.DataTypeOIDs.point,
|
|
10
|
-
jsType: 'object',
|
|
11
|
-
parseBinary(v) {
|
|
12
|
-
return {
|
|
13
|
-
x: v.readDoubleBE(0),
|
|
14
|
-
y: v.readDoubleBE(8),
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
encodeBinary(buf, v) {
|
|
18
|
-
buf.writeDoubleBE(v.x);
|
|
19
|
-
buf.writeDoubleBE(v.y);
|
|
20
|
-
},
|
|
21
|
-
parseText(v) {
|
|
22
|
-
const m = v.match(POINT_PATTERN1) || v.match(POINT_PATTERN2);
|
|
23
|
-
if (!m)
|
|
24
|
-
return undefined;
|
|
25
|
-
return {
|
|
26
|
-
x: parseFloat(m[1]),
|
|
27
|
-
y: parseFloat(m[2]),
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
isType(v) {
|
|
31
|
-
return (typeof v === 'object' &&
|
|
32
|
-
Object.keys(v).length === 2 &&
|
|
33
|
-
typeof v.x === 'number' &&
|
|
34
|
-
typeof v.y === 'number');
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
exports.ArrayPointType = {
|
|
38
|
-
...exports.PointType,
|
|
39
|
-
name: '_point',
|
|
40
|
-
oid: constants_js_1.DataTypeOIDs._point,
|
|
41
|
-
elementsOID: constants_js_1.DataTypeOIDs.point,
|
|
42
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayTimeType = exports.TimeType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const parse_time_js_1 = require("../util/parse-time.js");
|
|
6
|
-
const timeMul = 4294967296;
|
|
7
|
-
exports.TimeType = {
|
|
8
|
-
name: 'time',
|
|
9
|
-
oid: constants_js_1.DataTypeOIDs.time,
|
|
10
|
-
jsType: 'string',
|
|
11
|
-
parseBinary(v, options) {
|
|
12
|
-
const fetchAsString = options.fetchAsString &&
|
|
13
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.time);
|
|
14
|
-
const hi = v.readInt32BE();
|
|
15
|
-
const lo = v.readUInt32BE(4);
|
|
16
|
-
let d = new Date((lo + hi * timeMul) / 1000);
|
|
17
|
-
if (fetchAsString || !options.utcDates) {
|
|
18
|
-
d = new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());
|
|
19
|
-
}
|
|
20
|
-
return fetchAsString ? dateToTimeString(d) : d;
|
|
21
|
-
},
|
|
22
|
-
encodeBinary(buf, v, options) {
|
|
23
|
-
if (typeof v === 'string')
|
|
24
|
-
v = (0, parse_time_js_1.parseTime)(v, false, options.utcDates);
|
|
25
|
-
if (!(v instanceof Date))
|
|
26
|
-
v = new Date(v);
|
|
27
|
-
// Postgresql ignores timezone data so we are
|
|
28
|
-
let n = options.utcDates
|
|
29
|
-
? v.getTime()
|
|
30
|
-
: v.getTime() - v.getTimezoneOffset() * 60 * 1000;
|
|
31
|
-
n = n * 1000;
|
|
32
|
-
const hi = Math.floor(n / timeMul);
|
|
33
|
-
const lo = n - hi * timeMul;
|
|
34
|
-
buf.writeInt32BE(hi);
|
|
35
|
-
buf.writeUInt32BE(lo);
|
|
36
|
-
},
|
|
37
|
-
parseText(v, options) {
|
|
38
|
-
if (options.fetchAsString &&
|
|
39
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.time))
|
|
40
|
-
return v;
|
|
41
|
-
return (0, parse_time_js_1.parseTime)(v, false, options.utcDates);
|
|
42
|
-
},
|
|
43
|
-
isType(v) {
|
|
44
|
-
return ((v instanceof Date &&
|
|
45
|
-
v.getFullYear() === 1970 &&
|
|
46
|
-
v.getMonth() === 0 &&
|
|
47
|
-
v.getDate() === 1) ||
|
|
48
|
-
(typeof v === 'string' && parse_time_js_1.STRICT_TIME_PATTERN.test(v)));
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
function padZero(v) {
|
|
52
|
-
return v < 9 ? '0' + v : '' + v;
|
|
53
|
-
}
|
|
54
|
-
function dateToTimeString(d) {
|
|
55
|
-
return (padZero(d.getHours()) +
|
|
56
|
-
':' +
|
|
57
|
-
padZero(d.getMinutes()) +
|
|
58
|
-
':' +
|
|
59
|
-
padZero(d.getSeconds()));
|
|
60
|
-
}
|
|
61
|
-
exports.ArrayTimeType = {
|
|
62
|
-
...exports.TimeType,
|
|
63
|
-
name: '_time',
|
|
64
|
-
oid: constants_js_1.DataTypeOIDs._time,
|
|
65
|
-
elementsOID: constants_js_1.DataTypeOIDs.time,
|
|
66
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayTimestampType = exports.TimestampType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const parse_datetime_js_1 = require("../util/parse-datetime.js");
|
|
6
|
-
const timeShift = 946684800000;
|
|
7
|
-
const timeMul = 4294967296;
|
|
8
|
-
exports.TimestampType = {
|
|
9
|
-
name: 'timestamp',
|
|
10
|
-
oid: constants_js_1.DataTypeOIDs.timestamp,
|
|
11
|
-
jsType: 'Date',
|
|
12
|
-
parseBinary(v, options) {
|
|
13
|
-
const fetchAsString = options.fetchAsString &&
|
|
14
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.timestamp);
|
|
15
|
-
const hi = v.readInt32BE();
|
|
16
|
-
const lo = v.readUInt32BE(4);
|
|
17
|
-
if (lo === 0xffffffff && hi === 0x7fffffff)
|
|
18
|
-
return fetchAsString ? 'infinity' : Infinity;
|
|
19
|
-
if (lo === 0x00000000 && hi === -0x80000000)
|
|
20
|
-
return fetchAsString ? '-infinity' : -Infinity;
|
|
21
|
-
// Shift from 2000 to 1970
|
|
22
|
-
let d = new Date((lo + hi * timeMul) / 1000 + timeShift);
|
|
23
|
-
if (fetchAsString || !options.utcDates) {
|
|
24
|
-
d = new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());
|
|
25
|
-
}
|
|
26
|
-
return fetchAsString ? dateToTimestampString(d) : d;
|
|
27
|
-
},
|
|
28
|
-
encodeBinary(buf, v, options) {
|
|
29
|
-
if (typeof v === 'string')
|
|
30
|
-
v = (0, parse_datetime_js_1.parseDateTime)(v, true, false, options.utcDates);
|
|
31
|
-
if (v === Infinity) {
|
|
32
|
-
buf.writeInt32BE(0x7fffffff); // hi
|
|
33
|
-
buf.writeUInt32BE(0xffffffff); // lo
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (v === -Infinity) {
|
|
37
|
-
buf.writeInt32BE(-0x80000000); // hi
|
|
38
|
-
buf.writeUInt32BE(0x00000000); // lo
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (!(v instanceof Date))
|
|
42
|
-
v = new Date(v);
|
|
43
|
-
// Postgresql ignores timezone data so we are
|
|
44
|
-
let n = options.utcDates
|
|
45
|
-
? v.getTime()
|
|
46
|
-
: v.getTime() - v.getTimezoneOffset() * 60 * 1000;
|
|
47
|
-
n = (n - timeShift) * 1000;
|
|
48
|
-
const hi = Math.floor(n / timeMul);
|
|
49
|
-
const lo = n - hi * timeMul;
|
|
50
|
-
buf.writeInt32BE(hi);
|
|
51
|
-
buf.writeUInt32BE(lo);
|
|
52
|
-
},
|
|
53
|
-
parseText(v, options) {
|
|
54
|
-
if (options.fetchAsString &&
|
|
55
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.timestamp))
|
|
56
|
-
return v;
|
|
57
|
-
return (0, parse_datetime_js_1.parseDateTime)(v, true, false, options.utcDates);
|
|
58
|
-
},
|
|
59
|
-
isType(v) {
|
|
60
|
-
return (v instanceof Date &&
|
|
61
|
-
!(v.getFullYear() === 1970 && v.getMonth() === 0 && v.getDate() === 1) &&
|
|
62
|
-
!(v.getHours() === 0 &&
|
|
63
|
-
v.getMinutes() === 0 &&
|
|
64
|
-
v.getSeconds() === 0 &&
|
|
65
|
-
v.getMilliseconds() === 0));
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
function padZero(v) {
|
|
69
|
-
return v < 9 ? '0' + v : '' + v;
|
|
70
|
-
}
|
|
71
|
-
function dateToTimestampString(d) {
|
|
72
|
-
return (d.getFullYear() +
|
|
73
|
-
'-' +
|
|
74
|
-
padZero(d.getMonth() + 1) +
|
|
75
|
-
'-' +
|
|
76
|
-
padZero(d.getDate()) +
|
|
77
|
-
' ' +
|
|
78
|
-
padZero(d.getHours()) +
|
|
79
|
-
':' +
|
|
80
|
-
padZero(d.getMinutes()) +
|
|
81
|
-
':' +
|
|
82
|
-
padZero(d.getSeconds()));
|
|
83
|
-
}
|
|
84
|
-
exports.ArrayTimestampType = {
|
|
85
|
-
...exports.TimestampType,
|
|
86
|
-
name: '_timestamp',
|
|
87
|
-
oid: constants_js_1.DataTypeOIDs._timestamp,
|
|
88
|
-
elementsOID: constants_js_1.DataTypeOIDs.timestamp,
|
|
89
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayTimestamptzType = exports.TimestamptzType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const parse_datetime_js_1 = require("../util/parse-datetime.js");
|
|
6
|
-
const timeShift = 946684800000;
|
|
7
|
-
const timeMul = 4294967296;
|
|
8
|
-
exports.TimestamptzType = {
|
|
9
|
-
name: 'timestamptz',
|
|
10
|
-
oid: constants_js_1.DataTypeOIDs.timestamptz,
|
|
11
|
-
jsType: 'Date',
|
|
12
|
-
parseBinary(v, options) {
|
|
13
|
-
const fetchAsString = options.fetchAsString &&
|
|
14
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.timestamptz);
|
|
15
|
-
const hi = v.readInt32BE();
|
|
16
|
-
const lo = v.readUInt32BE(4);
|
|
17
|
-
if (lo === 0xffffffff && hi === 0x7fffffff)
|
|
18
|
-
return fetchAsString ? 'infinity' : Infinity;
|
|
19
|
-
if (lo === 0x00000000 && hi === -0x80000000)
|
|
20
|
-
return fetchAsString ? '-infinity' : -Infinity;
|
|
21
|
-
// Shift from 2000 to 1970
|
|
22
|
-
let d = new Date((lo + hi * timeMul) / 1000 + timeShift);
|
|
23
|
-
if (fetchAsString || !options.utcDates) {
|
|
24
|
-
d = new Date(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds());
|
|
25
|
-
}
|
|
26
|
-
return fetchAsString ? dateToTimestamptzString(d) : d;
|
|
27
|
-
},
|
|
28
|
-
encodeBinary(buf, v, options) {
|
|
29
|
-
if (typeof v === 'string')
|
|
30
|
-
v = (0, parse_datetime_js_1.parseDateTime)(v, true, true, options.utcDates);
|
|
31
|
-
if (v === Infinity) {
|
|
32
|
-
buf.writeInt32BE(0x7fffffff); // hi
|
|
33
|
-
buf.writeUInt32BE(0xffffffff); // lo
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (v === -Infinity) {
|
|
37
|
-
buf.writeInt32BE(-0x80000000); // hi
|
|
38
|
-
buf.writeUInt32BE(0x00000000); // lo
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (!(v instanceof Date))
|
|
42
|
-
v = new Date(v);
|
|
43
|
-
let n = v.getTime();
|
|
44
|
-
n = (n - timeShift) * 1000;
|
|
45
|
-
const hi = Math.floor(n / timeMul);
|
|
46
|
-
const lo = n - hi * timeMul;
|
|
47
|
-
buf.writeInt32BE(hi);
|
|
48
|
-
buf.writeUInt32BE(lo);
|
|
49
|
-
},
|
|
50
|
-
parseText(v, options) {
|
|
51
|
-
const d = (0, parse_datetime_js_1.parseDateTime)(v, true, true, options.utcDates);
|
|
52
|
-
if (options.fetchAsString &&
|
|
53
|
-
options.fetchAsString.includes(constants_js_1.DataTypeOIDs.timestamptz)) {
|
|
54
|
-
if (d instanceof Date)
|
|
55
|
-
return dateToTimestamptzString(d);
|
|
56
|
-
if (d === Infinity)
|
|
57
|
-
return 'infinity';
|
|
58
|
-
if (d === -Infinity)
|
|
59
|
-
return '-infinity';
|
|
60
|
-
return '';
|
|
61
|
-
}
|
|
62
|
-
return d;
|
|
63
|
-
},
|
|
64
|
-
isType(v) {
|
|
65
|
-
return v instanceof Date;
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
function dateToTimestamptzString(d) {
|
|
69
|
-
return d.toISOString().replace('T', ' ');
|
|
70
|
-
}
|
|
71
|
-
exports.ArrayTimestamptzType = {
|
|
72
|
-
...exports.TimestamptzType,
|
|
73
|
-
name: '_timestamptz',
|
|
74
|
-
oid: constants_js_1.DataTypeOIDs._timestamptz,
|
|
75
|
-
elementsOID: constants_js_1.DataTypeOIDs.timestamptz,
|
|
76
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayUuidType = exports.UuidType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
const GUID_PATTERN = /^[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}$/;
|
|
6
|
-
exports.UuidType = {
|
|
7
|
-
name: 'uuid',
|
|
8
|
-
oid: constants_js_1.DataTypeOIDs.uuid,
|
|
9
|
-
jsType: 'String',
|
|
10
|
-
parseBinary(v) {
|
|
11
|
-
return (v.toString('hex', 0, 4) +
|
|
12
|
-
'-' +
|
|
13
|
-
v.toString('hex', 4, 6) +
|
|
14
|
-
'-' +
|
|
15
|
-
v.toString('hex', 6, 8) +
|
|
16
|
-
'-' +
|
|
17
|
-
v.toString('hex', 8, 10) +
|
|
18
|
-
'-' +
|
|
19
|
-
v.toString('hex', 10, 16));
|
|
20
|
-
},
|
|
21
|
-
encodeBinary(buf, v) {
|
|
22
|
-
if (!GUID_PATTERN.test(v))
|
|
23
|
-
throw new Error(`"${v}" is not a valid guid value`);
|
|
24
|
-
const b = Buffer.from(v.replace(/-/g, ''), 'hex');
|
|
25
|
-
buf.writeBuffer(b);
|
|
26
|
-
},
|
|
27
|
-
parseText(v) {
|
|
28
|
-
return v;
|
|
29
|
-
},
|
|
30
|
-
isType(v) {
|
|
31
|
-
return typeof v === 'string' && GUID_PATTERN.test(v);
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
exports.ArrayUuidType = {
|
|
35
|
-
...exports.UuidType,
|
|
36
|
-
name: '_uuid',
|
|
37
|
-
oid: constants_js_1.DataTypeOIDs._uuid,
|
|
38
|
-
elementsOID: constants_js_1.DataTypeOIDs.uuid,
|
|
39
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArrayVarcharType = exports.VarcharType = void 0;
|
|
4
|
-
const constants_js_1 = require("../constants.js");
|
|
5
|
-
exports.VarcharType = {
|
|
6
|
-
name: 'varchar',
|
|
7
|
-
oid: constants_js_1.DataTypeOIDs.varchar,
|
|
8
|
-
jsType: 'string',
|
|
9
|
-
parseBinary(v) {
|
|
10
|
-
return v.toString('utf8');
|
|
11
|
-
},
|
|
12
|
-
encodeBinary(buf, v) {
|
|
13
|
-
buf.writeString('' + v, 'utf8');
|
|
14
|
-
},
|
|
15
|
-
parseText(v) {
|
|
16
|
-
return '' + v;
|
|
17
|
-
},
|
|
18
|
-
isType(v) {
|
|
19
|
-
return typeof v === 'string';
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
exports.ArrayVarcharType = {
|
|
23
|
-
...exports.VarcharType,
|
|
24
|
-
name: '_varchar',
|
|
25
|
-
oid: constants_js_1.DataTypeOIDs._varchar,
|
|
26
|
-
elementsOID: constants_js_1.DataTypeOIDs.varchar,
|
|
27
|
-
};
|
package/cjs/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./connection/bind-param.js"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./connection/connection.js"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./connection/cursor.js"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./connection/pool.js"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./connection/prepared-statement.js"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./constants.js"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./data-type-map.js"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./interfaces/command-result.js"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./interfaces/data-mapping-options.js"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./interfaces/data-type.js"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./interfaces/database-connection-params.js"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./interfaces/field-info.js"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./interfaces/query-options.js"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./interfaces/query-result.js"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./interfaces/script-execute-options.js"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./interfaces/script-result.js"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./interfaces/statement-prepare-options.js"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./protocol/database-error.js"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./protocol/smart-buffer.js"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./types.js"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./util/connection-config.js"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./util/escape-literal.js"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./util/parse-datetime.js"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./util/stringify-arrayliteral.js"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./util/stringify-for-sql.js"), exports);
|
package/cjs/package.json
DELETED