prostgles-server 4.1.37 → 4.1.39

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/lib/DboBuilder.ts CHANGED
@@ -628,7 +628,15 @@ export class DboBuilder {
628
628
  }
629
629
  async build(): Promise<DBHandlerServer> {
630
630
 
631
- this.tablesOrViews = await getTablesForSchemaPostgresSQL(this, this.prostgles.opts.schema);
631
+ const start = Date.now();
632
+ const tablesOrViewsReq = await getTablesForSchemaPostgresSQL(this, this.prostgles.opts.schema);
633
+ await this.prostgles.opts.onLog?.({
634
+ type: "debug",
635
+ command: "DboBuilder.getTablesForSchemaPostgresSQL",
636
+ data: tablesOrViewsReq.durations,
637
+ duration: Date.now() - start,
638
+ })
639
+ this.tablesOrViews = tablesOrViewsReq.result;
632
640
 
633
641
  this.constraints = await getConstraints(this.db, this.prostgles.opts.schema);
634
642
  await this.parseJoins();
@@ -727,10 +735,7 @@ export class DboBuilder {
727
735
  }
728
736
 
729
737
  export type TableSchemaColumn = ColumnInfo & {
730
- privileges: {
731
- privilege_type: "INSERT" | "REFERENCES" | "SELECT" | "UPDATE";// | "DELETE";
732
- is_grantable: "YES" | "NO"
733
- }[];
738
+ privileges: Partial<Record<"INSERT" | "REFERENCES" | "SELECT" | "UPDATE", true>>;// | "DELETE";
734
739
  }
735
740
 
736
741
  /* UTILS */
package/lib/Logging.ts CHANGED
@@ -90,6 +90,7 @@ export namespace EventTypes {
90
90
  | "initFileTable.start"
91
91
  | "initFileTable.end"
92
92
  | "initFileManager.runQuery"
93
+ | "DboBuilder.getTablesForSchemaPostgresSQL"
93
94
  data?: AnyObject;
94
95
  }
95
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-server",
3
- "version": "4.1.37",
3
+ "version": "4.1.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "check-disk-space": "^3.3.1",
40
40
  "file-type": "^17.1.4",
41
41
  "pg-promise": "^11.3.0",
42
- "prostgles-types": "^4.0.22"
42
+ "prostgles-types": "^4.0.23"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/bluebird": "^3.5.36",
@@ -1 +1 @@
1
- 171401
1
+ 155481
@@ -10,7 +10,7 @@
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@types/node": "^14.14.16",
13
- "prostgles-client": "^4.0.17",
13
+ "prostgles-client": "^4.0.18",
14
14
  "socket.io-client": "^4.7.1"
15
15
  },
16
16
  "devDependencies": {
@@ -74,17 +74,17 @@
74
74
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
75
75
  },
76
76
  "node_modules/prostgles-client": {
77
- "version": "4.0.17",
78
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-4.0.17.tgz",
79
- "integrity": "sha512-yENt1SiktPa0MzZ0YeDHNOt9JNT8YB9dWiEKKmY5942li8cA1XzdP8p+VlizS/1k738J0KbSdD+kA0qBVVm5Yg==",
77
+ "version": "4.0.18",
78
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-4.0.18.tgz",
79
+ "integrity": "sha512-XFvsYb3UNN49/GdfnkV07lZ/xDnE5QlR7N7sUYq5n5Lgdv4KjE9T7NDRo659oIENrgCklz4zmhr05aSbTFHwew==",
80
80
  "dependencies": {
81
- "prostgles-types": "^4.0.18"
81
+ "prostgles-types": "^4.0.23"
82
82
  }
83
83
  },
84
84
  "node_modules/prostgles-types": {
85
- "version": "4.0.18",
86
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-4.0.18.tgz",
87
- "integrity": "sha512-TEdrstCG8yDAzHc+z6/PN4JGupzHUM76tWzmJ8Xu2ECanrsF+44pDBN/uO/ev4l9Mq7mNc9fawXNsdH5rEAu7Q==",
85
+ "version": "4.0.23",
86
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-4.0.23.tgz",
87
+ "integrity": "sha512-l+0WBkzayzovrcB3CRmXOqBqVQAij8fd1gCcTMXG4wssJQhBnrhIPXARtDGOrjjCICSknSquGRti5Bn/VTY5NQ==",
88
88
  "dependencies": {
89
89
  "json-schema": "^0.4.0"
90
90
  }
@@ -204,17 +204,17 @@
204
204
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
205
205
  },
206
206
  "prostgles-client": {
207
- "version": "4.0.17",
208
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-4.0.17.tgz",
209
- "integrity": "sha512-yENt1SiktPa0MzZ0YeDHNOt9JNT8YB9dWiEKKmY5942li8cA1XzdP8p+VlizS/1k738J0KbSdD+kA0qBVVm5Yg==",
207
+ "version": "4.0.18",
208
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-4.0.18.tgz",
209
+ "integrity": "sha512-XFvsYb3UNN49/GdfnkV07lZ/xDnE5QlR7N7sUYq5n5Lgdv4KjE9T7NDRo659oIENrgCklz4zmhr05aSbTFHwew==",
210
210
  "requires": {
211
- "prostgles-types": "^4.0.18"
211
+ "prostgles-types": "^4.0.23"
212
212
  }
213
213
  },
214
214
  "prostgles-types": {
215
- "version": "4.0.18",
216
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-4.0.18.tgz",
217
- "integrity": "sha512-TEdrstCG8yDAzHc+z6/PN4JGupzHUM76tWzmJ8Xu2ECanrsF+44pDBN/uO/ev4l9Mq7mNc9fawXNsdH5rEAu7Q==",
215
+ "version": "4.0.23",
216
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-4.0.23.tgz",
217
+ "integrity": "sha512-l+0WBkzayzovrcB3CRmXOqBqVQAij8fd1gCcTMXG4wssJQhBnrhIPXARtDGOrjjCICSknSquGRti5Bn/VTY5NQ==",
218
218
  "requires": {
219
219
  "json-schema": "^0.4.0"
220
220
  }
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "@types/node": "^14.14.16",
16
- "prostgles-client": "^4.0.17",
16
+ "prostgles-client": "^4.0.18",
17
17
  "socket.io-client": "^4.7.1"
18
18
  },
19
19
  "devDependencies": {
@@ -154,6 +154,7 @@ CREATE TABLE IF NOT EXISTS "*" (
154
154
  DROP TABLE IF EXISTS """*""" CASCADE;
155
155
  CREATE TABLE IF NOT EXISTS """*""" (
156
156
  id SERIAL PRIMARY KEY,
157
+ qq TEXT,
157
158
  """*""" TEXT
158
159
  );
159
160
 
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "4.1.36",
24
+ "version": "4.1.38",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@types/express": "^4.17.13",
@@ -30,7 +30,7 @@
30
30
  "check-disk-space": "^3.3.1",
31
31
  "file-type": "^17.1.4",
32
32
  "pg-promise": "^11.3.0",
33
- "prostgles-types": "^4.0.22"
33
+ "prostgles-types": "^4.0.23"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/bluebird": "^3.5.36",
@@ -1521,7 +1521,7 @@
1521
1521
  "eslint": "^8.44.0",
1522
1522
  "file-type": "^17.1.4",
1523
1523
  "pg-promise": "^11.3.0",
1524
- "prostgles-types": "^4.0.22",
1524
+ "prostgles-types": "^4.0.23",
1525
1525
  "typescript": "^5.0.3"
1526
1526
  }
1527
1527
  },