triangle-utils 1.4.130 → 1.4.132
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/src/UtilsRDS.js +3 -1
- package/package.json +1 -1
- package/src/UtilsRDS.ts +3 -1
package/dist/src/UtilsRDS.js
CHANGED
|
@@ -46,10 +46,12 @@ export class UtilsRDS {
|
|
|
46
46
|
if (this.is_connected) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
+
this.is_connected = true;
|
|
49
50
|
return await this.postgres.connect();
|
|
50
51
|
}
|
|
51
52
|
async disconnect() {
|
|
52
|
-
|
|
53
|
+
await this.postgres.end();
|
|
54
|
+
this.is_connected = false;
|
|
53
55
|
}
|
|
54
56
|
async query(sql, options = {}) {
|
|
55
57
|
const is_verbose = Boolean(options.is_verbose);
|
package/package.json
CHANGED
package/src/UtilsRDS.ts
CHANGED
|
@@ -54,11 +54,13 @@ export class UtilsRDS {
|
|
|
54
54
|
if (this.is_connected) {
|
|
55
55
|
return
|
|
56
56
|
}
|
|
57
|
+
this.is_connected = true
|
|
57
58
|
return await this.postgres.connect()
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
async disconnect() {
|
|
61
|
-
|
|
62
|
+
await this.postgres.end()
|
|
63
|
+
this.is_connected = false
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
async query(
|