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.
@@ -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
- return await this.postgres.end();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.130",
3
+ "version": "1.4.132",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
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
- return await this.postgres.end()
62
+ await this.postgres.end()
63
+ this.is_connected = false
62
64
  }
63
65
 
64
66
  async query(