@sqb/postgres 4.11.3 → 4.12.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/README.md +9 -24
- package/cjs/pg-adapter.js +1 -1
- package/cjs/pg-connection.js +2 -2
- package/esm/pg-adapter.js +1 -1
- package/esm/pg-connection.js +2 -2
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ SQB is an extensible, multi-dialect SQL query builder and Database connection wr
|
|
|
18
18
|
|
|
19
19
|
## Main goals
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
21
|
+
- Single code base for any sql based database
|
|
22
|
+
- Powerful and simplified query coding scheme
|
|
23
|
+
- Fast applications with low memory requirements
|
|
24
|
+
- Let applications work with large data tables efficiently
|
|
25
|
+
- Support latest JavaScript language standards
|
|
26
|
+
- Lightweight and extensible framework.
|
|
27
27
|
|
|
28
28
|
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page
|
|
29
29
|
|
|
@@ -39,40 +39,25 @@ $ npm install @sqb/postgres --save
|
|
|
39
39
|
|
|
40
40
|
## Node Compatibility
|
|
41
41
|
|
|
42
|
-
-
|
|
42
|
+
- node >= 16.x
|
|
43
43
|
|
|
44
44
|
### License
|
|
45
45
|
|
|
46
46
|
SQB is available under [MIT](LICENSE) license.
|
|
47
47
|
|
|
48
48
|
[npm-image]: https://img.shields.io/npm/v/@sqb/postgres.svg
|
|
49
|
-
|
|
50
49
|
[npm-url]: https://npmjs.org/package/@sqb/postgres
|
|
51
|
-
|
|
52
50
|
[travis-image]: https://img.shields.io/travis/sqbjs/@sqb/postgres/master.svg
|
|
53
|
-
|
|
54
51
|
[travis-url]: https://travis-ci.org/sqbjs/@sqb/postgres
|
|
55
|
-
|
|
56
52
|
[coveralls-image]: https://img.shields.io/coveralls/sqbjs/@sqb/postgres/master.svg
|
|
57
|
-
|
|
58
53
|
[coveralls-url]: https://coveralls.io/r/sqbjs/@sqb/postgres
|
|
59
|
-
|
|
60
54
|
[downloads-image]: https://img.shields.io/npm/dm/@sqb/postgres.svg
|
|
61
|
-
|
|
62
55
|
[downloads-url]: https://npmjs.org/package/@sqb/postgres
|
|
63
|
-
|
|
64
56
|
[gitter-image]: https://badges.gitter.im/sqbjs/@sqb/postgres.svg
|
|
65
|
-
|
|
66
57
|
[gitter-url]: https://gitter.im/sqbjs/@sqb/postgres?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
|
67
|
-
|
|
68
58
|
[dependencies-image]: https://david-dm.org/sqbjs/@sqb/postgres/status.svg
|
|
69
|
-
|
|
70
|
-
[dependencies-url]:https://david-dm.org/sqbjs/@sqb/postgres
|
|
71
|
-
|
|
59
|
+
[dependencies-url]: https://david-dm.org/sqbjs/@sqb/postgres
|
|
72
60
|
[devdependencies-image]: https://david-dm.org/sqbjs/@sqb/postgres/dev-status.svg
|
|
73
|
-
|
|
74
|
-
[devdependencies-url]:https://david-dm.org/sqbjs/@sqb/postgres?type=dev
|
|
75
|
-
|
|
61
|
+
[devdependencies-url]: https://david-dm.org/sqbjs/@sqb/postgres?type=dev
|
|
76
62
|
[quality-image]: http://npm.packagequality.com/shield/@sqb/postgres.png
|
|
77
|
-
|
|
78
63
|
[quality-url]: http://packagequality.com/#?package=@sqb/postgres
|
package/cjs/pg-adapter.js
CHANGED
|
@@ -12,7 +12,7 @@ class PgAdapter {
|
|
|
12
12
|
this.features = {
|
|
13
13
|
cursor: true,
|
|
14
14
|
schema: true,
|
|
15
|
-
fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ]
|
|
15
|
+
fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ],
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
async connect(config) {
|
package/cjs/pg-connection.js
CHANGED
|
@@ -112,7 +112,7 @@ class PgConnection {
|
|
|
112
112
|
params,
|
|
113
113
|
cursor: query.cursor,
|
|
114
114
|
fetchCount: query.fetchRows,
|
|
115
|
-
objectRows: query.objectRows
|
|
115
|
+
objectRows: query.objectRows,
|
|
116
116
|
};
|
|
117
117
|
if (query.fetchAsString) {
|
|
118
118
|
const items = query.fetchAsString.reduce((a, v) => {
|
|
@@ -148,7 +148,7 @@ class PgConnection {
|
|
|
148
148
|
elementDataType: v.elementDataTypeName,
|
|
149
149
|
jsType: v.jsType,
|
|
150
150
|
isArray: v.isArray,
|
|
151
|
-
_inf: v
|
|
151
|
+
_inf: v,
|
|
152
152
|
};
|
|
153
153
|
result.push(o);
|
|
154
154
|
}
|
package/esm/pg-adapter.js
CHANGED
|
@@ -9,7 +9,7 @@ export class PgAdapter {
|
|
|
9
9
|
this.features = {
|
|
10
10
|
cursor: true,
|
|
11
11
|
schema: true,
|
|
12
|
-
fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
|
|
12
|
+
fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ],
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
async connect(config) {
|
package/esm/pg-connection.js
CHANGED
|
@@ -109,7 +109,7 @@ export class PgConnection {
|
|
|
109
109
|
params,
|
|
110
110
|
cursor: query.cursor,
|
|
111
111
|
fetchCount: query.fetchRows,
|
|
112
|
-
objectRows: query.objectRows
|
|
112
|
+
objectRows: query.objectRows,
|
|
113
113
|
};
|
|
114
114
|
if (query.fetchAsString) {
|
|
115
115
|
const items = query.fetchAsString.reduce((a, v) => {
|
|
@@ -145,7 +145,7 @@ export class PgConnection {
|
|
|
145
145
|
elementDataType: v.elementDataTypeName,
|
|
146
146
|
jsType: v.jsType,
|
|
147
147
|
isArray: v.isArray,
|
|
148
|
-
_inf: v
|
|
148
|
+
_inf: v,
|
|
149
149
|
};
|
|
150
150
|
result.push(o);
|
|
151
151
|
}
|
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.12.1",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
@@ -30,18 +30,19 @@
|
|
|
30
30
|
"clean": "npm run clean:src | npm run clean:dist | npm run clean:cover",
|
|
31
31
|
"clean:src": "ts-cleanup -s src --all",
|
|
32
32
|
"clean:dist": "rimraf ../../build/postgres",
|
|
33
|
-
"clean:cover": "rimraf ../../coverage/postgres"
|
|
33
|
+
"clean:cover": "rimraf ../../coverage/postgres",
|
|
34
|
+
"format": "prettier . --write --log-level=warn"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"putil-promisify": "^1.10.1"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"postgresql-client": "^2.
|
|
40
|
+
"postgresql-client": "^2.11.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@sqb/builder": "^4.
|
|
43
|
-
"@sqb/connect": "^4.
|
|
44
|
-
"@sqb/postgres-dialect": "^4.
|
|
43
|
+
"@sqb/builder": "^4.12.1",
|
|
44
|
+
"@sqb/connect": "^4.12.1",
|
|
45
|
+
"@sqb/postgres-dialect": "^4.12.1",
|
|
45
46
|
"postgresql-client": "^2.x.x"
|
|
46
47
|
},
|
|
47
48
|
"engines": {
|