@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 +7 -9
- package/cjs/pg-connection.js +1 -0
- package/esm/pg-adapter.js +7 -9
- package/esm/pg-connection.js +1 -0
- package/package.json +6 -7
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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)
|
package/cjs/pg-connection.js
CHANGED
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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)
|
package/esm/pg-connection.js
CHANGED
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.
|
|
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.
|
|
13
|
-
"@sqb/connect": "^4.
|
|
14
|
-
"@sqb/postgres-dialect": "^4.
|
|
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/
|
|
41
|
+
"url": "https://github.com/panates/sqb.git",
|
|
42
42
|
"directory": "packages/postgres"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
46
|
-
"npm": ">=7.0.0"
|
|
45
|
+
"node": ">=18.0"
|
|
47
46
|
},
|
|
48
47
|
"files": [
|
|
49
48
|
"bin/",
|