@trenskow/pged 5.0.0 → 5.0.3
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/index.js +6 -6
- package/package.json +2 -2
- package/query-builder.js +1 -3
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
import Puqeue from 'puqeue';
|
|
4
2
|
import caseit from '@trenskow/caseit';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import QueryBuilder from './query-builder';
|
|
3
|
+
import pg from 'pg';
|
|
8
4
|
import EventEmitter from '@trenskow/async-event-emitter';
|
|
9
5
|
|
|
6
|
+
import QueryBuilder from './query-builder.js';
|
|
7
|
+
|
|
8
|
+
const { Pool } = pg;
|
|
9
|
+
|
|
10
10
|
let id = 0;
|
|
11
11
|
|
|
12
12
|
let pgOptions;
|
|
13
13
|
let pool;
|
|
14
14
|
|
|
15
|
-
export default
|
|
15
|
+
export default class PGed extends EventEmitter {
|
|
16
16
|
|
|
17
17
|
static get pg() {
|
|
18
18
|
return pgOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/pged",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Just a silly little db management and query builder for PostgreSQL.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/trenskow/pged#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@trenskow/async-event-emitter": "^0.0.
|
|
26
|
+
"@trenskow/async-event-emitter": "^0.0.3",
|
|
27
27
|
"@trenskow/caseit": "^1.3.0",
|
|
28
28
|
"@trenskow/custom-promise": "^0.10.1",
|
|
29
29
|
"pg": "^8.7.3",
|
package/query-builder.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
import caseit from '@trenskow/caseit';
|
|
4
2
|
import CustomPromise from '@trenskow/custom-promise';
|
|
5
3
|
import Puqeue from 'puqeue';
|
|
@@ -7,7 +5,7 @@ import Puqeue from 'puqeue';
|
|
|
7
5
|
const tableInformationQueue = new Puqeue();
|
|
8
6
|
const tableInformation = {};
|
|
9
7
|
|
|
10
|
-
export default
|
|
8
|
+
export default class QueryBuilder extends CustomPromise {
|
|
11
9
|
|
|
12
10
|
constructor(table, options = {}, connection) {
|
|
13
11
|
|