@m2k-5f/pgtx 1.2.1 → 1.2.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/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import { Pool as PgtxPool } from "./pool";
5
5
  import { literalClause } from "./clauses/literal.clause";
6
6
  import { updateClause } from "./clauses/update.clause";
7
7
  import { insertClause } from "./clauses/insert.clause";
8
+ import { Connection } from "./connection";
9
+ import { Transaction } from "./transaction";
8
10
  /**
9
11
  * Core SQL tagging utility for Pgtx.
10
12
  * Provides type-safe helpers for building dynamic queries with recursive support.
@@ -88,5 +90,7 @@ export declare const sql: {
88
90
  * Main Pgtx Connection Pool.
89
91
  * Manages connections, transactions (including SAVEPOINTs), and prepared statements.
90
92
  */
93
+ export { Connection as Connection };
94
+ export { Transaction as Transaction };
91
95
  export { PgtxPool as Pool };
92
96
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,GAAG;IACZ;;;;;;;;;;;OAWG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;;OAUG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;;;OAQG;;IAGH;;;;;;;;;;;;;;;;;;;OAmBG;;CAEN,CAAA;AAED;;;GAGG;AACH,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,GAAG;IACZ;;;;;;;;;;;OAWG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;;OAUG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;;;OAQG;;IAGH;;;;;;;;;;;;;;;;;;;OAmBG;;CAEN,CAAA;AAGD;;;GAGG;AAEH,OAAO,EAAC,UAAU,IAAI,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAC,WAAW,IAAI,WAAW,EAAC,CAAA;AAEnC,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pool = exports.sql = void 0;
3
+ exports.Pool = exports.Transaction = exports.Connection = exports.sql = void 0;
4
4
  const array_clause_1 = require("./clauses/array.clause");
5
5
  const fragment_clause_1 = require("./clauses/fragment.clause");
6
6
  const iden_caluse_1 = require("./clauses/iden.caluse");
@@ -9,6 +9,10 @@ Object.defineProperty(exports, "Pool", { enumerable: true, get: function () { re
9
9
  const literal_clause_1 = require("./clauses/literal.clause");
10
10
  const update_clause_1 = require("./clauses/update.clause");
11
11
  const insert_clause_1 = require("./clauses/insert.clause");
12
+ const connection_1 = require("./connection");
13
+ Object.defineProperty(exports, "Connection", { enumerable: true, get: function () { return connection_1.Connection; } });
14
+ const transaction_1 = require("./transaction");
15
+ Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return transaction_1.Transaction; } });
12
16
  /**
13
17
  * Core SQL tagging utility for Pgtx.
14
18
  * Provides type-safe helpers for building dynamic queries with recursive support.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2k-5f/pgtx",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Lightweight, high-performance SQL toolkit for node-postgres",
5
5
  "files": [
6
6
  "dist",