@sqb/postgres 4.19.6 → 4.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/pg-adapter.js CHANGED
@@ -6,15 +6,13 @@ const connect_1 = require("@sqb/connect");
6
6
  const postgrejs_1 = require("postgrejs");
7
7
  const pg_connection_js_1 = require("./pg-connection.js");
8
8
  class PgAdapter {
9
- constructor() {
10
- this.driver = 'postgrejs';
11
- this.dialect = 'postgres';
12
- this.features = {
13
- cursor: true,
14
- schema: true,
15
- fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ],
16
- };
17
- }
9
+ driver = 'postgrejs';
10
+ dialect = 'postgres';
11
+ features = {
12
+ cursor: true,
13
+ schema: true,
14
+ fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ],
15
+ };
18
16
  async connect(config) {
19
17
  const cfg = { ...config.driverOptions };
20
18
  if (config.user)
@@ -22,6 +22,7 @@ const SqbDataTypToOIDMap = {
22
22
  [connect_1.DataType.GUID]: [postgrejs_1.DataTypeOIDs.uuid, postgrejs_1.DataTypeOIDs._uuid],
23
23
  };
24
24
  class PgConnection {
25
+ intlcon;
25
26
  constructor(conn) {
26
27
  this.intlcon = conn;
27
28
  }
package/esm/pg-adapter.js CHANGED
@@ -3,15 +3,13 @@ import { DataType } from '@sqb/connect';
3
3
  import { Connection } from 'postgrejs';
4
4
  import { PgConnection } from './pg-connection.js';
5
5
  export class PgAdapter {
6
- constructor() {
7
- this.driver = 'postgrejs';
8
- this.dialect = 'postgres';
9
- this.features = {
10
- cursor: true,
11
- schema: true,
12
- fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ],
13
- };
14
- }
6
+ driver = 'postgrejs';
7
+ dialect = 'postgres';
8
+ features = {
9
+ cursor: true,
10
+ schema: true,
11
+ fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ],
12
+ };
15
13
  async connect(config) {
16
14
  const cfg = { ...config.driverOptions };
17
15
  if (config.user)
@@ -19,6 +19,7 @@ const SqbDataTypToOIDMap = {
19
19
  [DataType.GUID]: [DataTypeOIDs.uuid, DataTypeOIDs._uuid],
20
20
  };
21
21
  export class PgConnection {
22
+ intlcon;
22
23
  constructor(conn) {
23
24
  this.intlcon = conn;
24
25
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/postgres",
3
3
  "description": "SQB serialization extension for PostgreSQL database",
4
- "version": "4.19.6",
4
+ "version": "4.20.1",
5
5
  "author": "Panates",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
@@ -9,9 +9,9 @@
9
9
  "tslib": "^2.8.1"
10
10
  },
11
11
  "peerDependencies": {
12
- "@sqb/builder": "^4.19.6",
13
- "@sqb/connect": "^4.19.6",
14
- "@sqb/postgres-dialect": "^4.19.6",
12
+ "@sqb/builder": "^4.20.1",
13
+ "@sqb/connect": "^4.20.1",
14
+ "@sqb/postgres-dialect": "^4.20.1",
15
15
  "postgrejs": ">=2.15.1 <3.0.0"
16
16
  },
17
17
  "type": "module",
@@ -38,12 +38,11 @@
38
38
  ],
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "https://github.com/sqbjs/sqb.git",
41
+ "url": "https://github.com/panates/sqb.git",
42
42
  "directory": "packages/postgres"
43
43
  },
44
44
  "engines": {
45
- "node": ">=16.0",
46
- "npm": ">=7.0.0"
45
+ "node": ">=18.0"
47
46
  },
48
47
  "files": [
49
48
  "bin/",