@m2k-5f/pgtx 2.6.1 → 2.6.2
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 +237 -487
- package/dist/batch.d.ts +2 -1
- package/dist/batch.d.ts.map +1 -1
- package/dist/batch.js +8 -7
- package/dist/connection.d.ts +39 -150
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +184 -273
- package/dist/pool.d.ts +29 -181
- package/dist/pool.d.ts.map +1 -1
- package/dist/pool.js +49 -180
- package/dist/protocol/connection-response-reader.d.ts +1 -0
- package/dist/protocol/connection-response-reader.d.ts.map +1 -1
- package/dist/protocol/connection-response-reader.js +3 -0
- package/dist/protocol/socket-connector.d.ts +5 -5
- package/dist/protocol/socket-connector.d.ts.map +1 -1
- package/dist/protocol/socket-connector.js +24 -15
- package/dist/query.d.ts +17 -17
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +22 -17
- package/dist/transaction.d.ts +9 -1
- package/dist/transaction.d.ts.map +1 -1
- package/dist/transaction.js +11 -0
- package/dist/types.d.ts +9 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { ConnectionResponseReader } from '../protocol/connection-response-reader';
|
|
2
2
|
export class SocketConnector {
|
|
3
|
-
constructor(_socket,
|
|
3
|
+
constructor(_socket, onData, onError) {
|
|
4
4
|
this._socket = _socket;
|
|
5
|
-
this._onData = _onData;
|
|
6
|
-
this._onError = _onError;
|
|
7
5
|
this.residualBuffer = null;
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
this._destroyed = false;
|
|
7
|
+
this._onError = (err) => {
|
|
8
|
+
if (this._destroyed)
|
|
9
|
+
return;
|
|
10
|
+
this._destroyed = true;
|
|
11
|
+
onError(err);
|
|
12
|
+
this.destroy();
|
|
13
|
+
};
|
|
14
|
+
this._onClose = () => {
|
|
15
|
+
if (this._destroyed)
|
|
16
|
+
return;
|
|
17
|
+
this._destroyed = true;
|
|
18
|
+
onError(new Error("Socket closed"));
|
|
19
|
+
this.destroy();
|
|
20
|
+
};
|
|
21
|
+
this._onData = buffer => {
|
|
11
22
|
const currentBuffer = this.residualBuffer
|
|
12
23
|
? Buffer.concat([this.residualBuffer, buffer])
|
|
13
24
|
: buffer;
|
|
@@ -19,14 +30,13 @@ export class SocketConnector {
|
|
|
19
30
|
return;
|
|
20
31
|
}
|
|
21
32
|
const { type, length } = reader.readType();
|
|
22
|
-
|
|
33
|
+
onData(type, length, reader);
|
|
23
34
|
}
|
|
24
|
-
}
|
|
25
|
-
_socket.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
35
|
+
};
|
|
36
|
+
_socket.setKeepAlive(true, 10000);
|
|
37
|
+
_socket.on('data', this._onData);
|
|
38
|
+
_socket.on('error', this._onError);
|
|
39
|
+
_socket.on('close', this._onClose);
|
|
30
40
|
}
|
|
31
41
|
write(writer) {
|
|
32
42
|
this._socket.write(writer.asBuffer());
|
|
@@ -34,11 +44,10 @@ export class SocketConnector {
|
|
|
34
44
|
unwrapSocket() {
|
|
35
45
|
this._socket.off('error', this._onError);
|
|
36
46
|
this._socket.off("data", this._onData);
|
|
47
|
+
this._socket.off('close', this._onClose);
|
|
37
48
|
return this._socket;
|
|
38
49
|
}
|
|
39
50
|
destroy() {
|
|
40
|
-
this._isDestroyed = true;
|
|
41
51
|
this._socket.destroy();
|
|
42
52
|
}
|
|
43
|
-
get isDestroyed() { return this._isDestroyed; }
|
|
44
53
|
}
|
package/dist/query.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { Future } from "fluent-future";
|
|
2
|
-
import { ColumnDescription,
|
|
2
|
+
import { ColumnDescription, QueryText, Row, StatementName } from "./types";
|
|
3
3
|
import { PostgresError } from "./error";
|
|
4
4
|
export declare abstract class Query {
|
|
5
5
|
statement: StatementName;
|
|
6
|
+
text: QueryText;
|
|
7
|
+
args: (string | null)[];
|
|
6
8
|
protected _timer?: NodeJS.Timeout;
|
|
7
|
-
constructor(statement: StatementName, timeout: number);
|
|
9
|
+
constructor(statement: StatementName, text: QueryText, args: (string | null)[], timeout: number);
|
|
8
10
|
abstract reject(cause: PostgresError): void;
|
|
9
11
|
abstract resolve(...args: any[]): void;
|
|
12
|
+
abstract push(...args: any[]): void;
|
|
10
13
|
}
|
|
11
|
-
export declare class
|
|
12
|
-
|
|
13
|
-
args: (string | null)[];
|
|
14
|
-
columns: ColumnDescription[];
|
|
14
|
+
export declare class CollectQuery<T extends Row> extends Query {
|
|
15
|
+
columns: ColumnDescription[] | null;
|
|
15
16
|
future: Future<T[], PostgresError>;
|
|
16
17
|
private _resolve;
|
|
17
18
|
private _reject;
|
|
18
19
|
private _rows;
|
|
19
|
-
constructor(statement: StatementName, text: QueryText, args: (string | null)[], columns: ColumnDescription[], timeout: number);
|
|
20
|
+
constructor(statement: StatementName, text: QueryText, args: (string | null)[], columns: ColumnDescription[] | null, timeout: number);
|
|
20
21
|
push(value: T): void;
|
|
21
22
|
reject(cause: PostgresError): void;
|
|
22
23
|
resolve(): void;
|
|
23
24
|
}
|
|
24
|
-
export declare class
|
|
25
|
-
|
|
26
|
-
future: Future<
|
|
25
|
+
export declare class ExecuteQuery extends Query {
|
|
26
|
+
columns: ColumnDescription[] | null;
|
|
27
|
+
future: Future<void, PostgresError>;
|
|
27
28
|
private _resolve;
|
|
28
29
|
private _reject;
|
|
29
|
-
constructor(statement: StatementName, text: QueryText, timeout: number);
|
|
30
|
+
constructor(statement: StatementName, text: QueryText, args: (string | null)[], columns: ColumnDescription[] | null, timeout: number);
|
|
30
31
|
reject(cause: PostgresError): void;
|
|
31
|
-
resolve(
|
|
32
|
+
resolve(): void;
|
|
33
|
+
push(): void;
|
|
32
34
|
}
|
|
33
35
|
export declare class StreamQuery<T> extends Query {
|
|
34
|
-
text: QueryText;
|
|
35
|
-
args: (string | null)[];
|
|
36
36
|
controller: ReadableStreamDefaultController<T>;
|
|
37
|
-
columns: ColumnDescription[];
|
|
38
|
-
constructor(statement: StatementName, text: QueryText, args: (string | null)[], controller: ReadableStreamDefaultController<T>, columns: ColumnDescription[], timeout: number);
|
|
37
|
+
columns: ColumnDescription[] | null;
|
|
38
|
+
constructor(statement: StatementName, text: QueryText, args: (string | null)[], controller: ReadableStreamDefaultController<T>, columns: ColumnDescription[] | null, timeout: number);
|
|
39
39
|
push(value: T): void;
|
|
40
40
|
reject(cause: PostgresError): void;
|
|
41
41
|
resolve(): void;
|
|
42
42
|
}
|
|
43
|
-
export type PostgresQuery =
|
|
43
|
+
export type PostgresQuery = CollectQuery<any> | StreamQuery<any> | ExecuteQuery;
|
|
44
44
|
//# sourceMappingURL=query.d.ts.map
|
package/dist/query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAa,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAmB,aAAa,EAAE,MAAM,SAAS,CAAC;AAGzD,8BAAsB,KAAK;IAIZ,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE;IALlC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,OAAO,CAAA;gBAGtB,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAC9B,OAAO,EAAE,MAAM;IAQn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C,CAAE,SAAQ,KAAK;IAK1B,UAAU,EAAE,+BAA+B,CAAC,CAAC,CAAC;IAC9C,OAAO,EAAE,iBAAiB,EAAE,GAAG,IAAI;gBAJ1C,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAChB,UAAU,EAAE,+BAA+B,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAC1C,OAAO,EAAE,MAAM;IAMnB,IAAI,CAAC,KAAK,EAAE,CAAC;IAOb,MAAM,CAAC,KAAK,EAAE,aAAa;IAM3B,OAAO;CAMV;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,YAAY,CAAA"}
|
package/dist/query.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Future } from "fluent-future";
|
|
2
2
|
import { ErrQueryTimeout } from "./error";
|
|
3
3
|
export class Query {
|
|
4
|
-
constructor(statement, timeout) {
|
|
4
|
+
constructor(statement, text, args, timeout) {
|
|
5
5
|
this.statement = statement;
|
|
6
|
+
this.text = text;
|
|
7
|
+
this.args = args;
|
|
6
8
|
this._timer = setTimeout(() => {
|
|
7
9
|
this.reject(ErrQueryTimeout);
|
|
8
10
|
}, timeout);
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
|
-
export class
|
|
13
|
+
export class CollectQuery extends Query {
|
|
12
14
|
constructor(statement, text, args, columns, timeout) {
|
|
13
|
-
super(statement, timeout);
|
|
14
|
-
this.text = text;
|
|
15
|
-
this.args = args;
|
|
15
|
+
super(statement, text, args, timeout);
|
|
16
16
|
this.columns = columns;
|
|
17
17
|
this._rows = [];
|
|
18
18
|
const { future, reject, resolve } = Future.withResolvers();
|
|
@@ -32,34 +32,36 @@ export class SimpleQuery extends Query {
|
|
|
32
32
|
this._resolve(this._rows);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
export class
|
|
36
|
-
constructor(statement, text, timeout) {
|
|
37
|
-
super(statement, timeout);
|
|
38
|
-
this.
|
|
35
|
+
export class ExecuteQuery extends Query {
|
|
36
|
+
constructor(statement, text, args, columns, timeout) {
|
|
37
|
+
super(statement, text, args, timeout);
|
|
38
|
+
this.columns = columns;
|
|
39
39
|
const { future, reject, resolve } = Future.withResolvers();
|
|
40
40
|
this.future = future;
|
|
41
|
-
this._resolve = resolve;
|
|
42
41
|
this._reject = reject;
|
|
42
|
+
this._resolve = resolve;
|
|
43
43
|
}
|
|
44
44
|
reject(cause) {
|
|
45
45
|
clearTimeout(this._timer);
|
|
46
46
|
this._reject(cause);
|
|
47
47
|
}
|
|
48
|
-
resolve(
|
|
48
|
+
resolve() {
|
|
49
49
|
clearTimeout(this._timer);
|
|
50
|
-
this._resolve(
|
|
50
|
+
this._resolve();
|
|
51
51
|
}
|
|
52
|
+
push() { }
|
|
52
53
|
}
|
|
53
54
|
export class StreamQuery extends Query {
|
|
54
55
|
constructor(statement, text, args, controller, columns, timeout) {
|
|
55
|
-
super(statement, timeout);
|
|
56
|
-
this.text = text;
|
|
57
|
-
this.args = args;
|
|
56
|
+
super(statement, text, args, timeout);
|
|
58
57
|
this.controller = controller;
|
|
59
58
|
this.columns = columns;
|
|
60
59
|
}
|
|
61
60
|
push(value) {
|
|
62
|
-
|
|
61
|
+
try {
|
|
62
|
+
this.controller.enqueue(value);
|
|
63
|
+
}
|
|
64
|
+
catch { }
|
|
63
65
|
}
|
|
64
66
|
reject(cause) {
|
|
65
67
|
clearTimeout(this._timer);
|
|
@@ -67,6 +69,9 @@ export class StreamQuery extends Query {
|
|
|
67
69
|
}
|
|
68
70
|
resolve() {
|
|
69
71
|
clearTimeout(this._timer);
|
|
70
|
-
|
|
72
|
+
try {
|
|
73
|
+
this.controller.close();
|
|
74
|
+
}
|
|
75
|
+
catch { }
|
|
71
76
|
}
|
|
72
77
|
}
|
package/dist/transaction.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Future } from "fluent-future";
|
|
2
2
|
import { Connection } from "./connection";
|
|
3
3
|
import { PostgresError } from "./error";
|
|
4
|
+
import { Row } from "./types";
|
|
4
5
|
/**
|
|
5
6
|
* Represents an active SQL transaction.
|
|
6
7
|
* All queries are executed on a single dedicated connection.
|
|
@@ -24,7 +25,14 @@ export declare class Transaction {
|
|
|
24
25
|
/**
|
|
25
26
|
* Executes a query within the current transaction.
|
|
26
27
|
*/
|
|
27
|
-
query<T extends
|
|
28
|
+
query<T extends Row>(strings: TemplateStringsArray, ...values: any[]): Future<T[], PostgresError>;
|
|
29
|
+
/**
|
|
30
|
+
* Like {@link query}, but for statements that don't return rows (INSERT/UPDATE/DDL/etc).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await tx.execute`UPDATE users SET name = ${name} WHERE id = ${id}`
|
|
34
|
+
*/
|
|
35
|
+
execute(strings: TemplateStringsArray, ...params: any[]): Future<void, PostgresError>;
|
|
28
36
|
/**
|
|
29
37
|
* Creates a sub-transaction using PostgreSQL SAVEPOINT.
|
|
30
38
|
* If the callback throws, only the actions within this savepoint are rolled back.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAwB,aAAa,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAwB,aAAa,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAE7B;;;GAGG;AACH,qBAAa,WAAW;IAIhB,QAAQ,CAAC,IAAI,EAAE,UAAU;IAH7B,OAAO,CAAC,UAAU,CAAiB;gBAGtB,IAAI,EAAE,UAAU;IAG7B;;OAEG;IACH,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;OAEG;IACI,MAAM;IAQb;;OAEG;IACI,QAAQ;IAQf;;OAEG;IACI,KAAK,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE;IAM3E;;;;;OAKG;IACI,OAAO,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE;IAM9D;;;;;;;;;OASG;IACI,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC;CAW9E"}
|
package/dist/transaction.js
CHANGED
|
@@ -44,6 +44,17 @@ export class Transaction {
|
|
|
44
44
|
return Future.reject(ErrTransactionClosed);
|
|
45
45
|
return this.conn.query(strings, ...values);
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Like {@link query}, but for statements that don't return rows (INSERT/UPDATE/DDL/etc).
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await tx.execute`UPDATE users SET name = ${name} WHERE id = ${id}`
|
|
52
|
+
*/
|
|
53
|
+
execute(strings, ...params) {
|
|
54
|
+
if (this.isFinished)
|
|
55
|
+
return Future.reject(ErrTransactionClosed);
|
|
56
|
+
return this.conn.execute(strings, ...params);
|
|
57
|
+
}
|
|
47
58
|
/**
|
|
48
59
|
* Creates a sub-transaction using PostgreSQL SAVEPOINT.
|
|
49
60
|
* If the callback throws, only the actions within this savepoint are rolled back.
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Future } from "fluent-future";
|
|
1
2
|
import { Connection } from "./connection";
|
|
2
3
|
import { PostgresError } from "./error";
|
|
3
4
|
import { DataTypeOid } from "./protocol/constants";
|
|
@@ -34,7 +35,7 @@ export type ConnectionPartialConfig = {
|
|
|
34
35
|
logLevel?: LogLevel;
|
|
35
36
|
int8toBigint?: boolean;
|
|
36
37
|
queryTimeout?: number;
|
|
37
|
-
syncShedule?: "
|
|
38
|
+
syncShedule?: "beforeMicrotask" | "afterMicrotask" | "Immediate";
|
|
38
39
|
};
|
|
39
40
|
export type ConnectionConfig = {
|
|
40
41
|
user: string;
|
|
@@ -45,7 +46,7 @@ export type ConnectionConfig = {
|
|
|
45
46
|
logLevel: LogLevel;
|
|
46
47
|
int8toBigint: boolean;
|
|
47
48
|
queryTimeout: number;
|
|
48
|
-
syncShedule: "
|
|
49
|
+
syncShedule: "beforeMicrotask" | "afterMicrotask" | "Immediate";
|
|
49
50
|
};
|
|
50
51
|
export type StatementName = Branded<string, 'StatementName'>;
|
|
51
52
|
export type QueryText = Branded<string, 'QueryText'>;
|
|
@@ -64,5 +65,11 @@ export type Waiter = {
|
|
|
64
65
|
resolve: (conn: Connection) => void;
|
|
65
66
|
reject: (err: PostgresError) => void;
|
|
66
67
|
};
|
|
68
|
+
export type Row = Record<string, any>;
|
|
69
|
+
export type Resolvers<T extends Future<any>> = {
|
|
70
|
+
future: T;
|
|
71
|
+
resolve: (value: T extends Future<infer I> ? I : never) => void;
|
|
72
|
+
reject: (cause: T extends Future<any, infer E> ? E : never) => void;
|
|
73
|
+
};
|
|
67
74
|
export {};
|
|
68
75
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,O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