prostgles-server 4.2.648 → 4.2.649

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.
Files changed (69) hide show
  1. package/debug/als-build.log +4 -0
  2. package/debug/als-e2e.log +1747 -0
  3. package/debug/als-lint.log +4 -0
  4. package/debug/als-npm-test.log +712 -0
  5. package/debug/als-row-parts-e2e.log +1759 -0
  6. package/debug/als-row-parts-npm-test.log +716 -0
  7. package/debug/als-typecheck.log +8 -0
  8. package/debug/als-unified-build.log +4 -0
  9. package/debug/als-unified-lint.log +4 -0
  10. package/debug/als-unified-test-build.log +11 -0
  11. package/debug/als-unified-test-server.log +3444 -0
  12. package/dist/Audit/AuditTable.d.ts +1 -1
  13. package/dist/DboBuilder/DboBuilder.d.ts.map +1 -1
  14. package/dist/DboBuilder/DboBuilder.js +4 -2
  15. package/dist/DboBuilder/DboBuilder.js.map +1 -1
  16. package/dist/DboBuilder/DboBuilder.spec.js +3 -1
  17. package/dist/DboBuilder/DboBuilder.spec.js.map +1 -1
  18. package/dist/DboBuilder/TableHandler/TableHandler.d.ts.map +1 -1
  19. package/dist/DboBuilder/TableHandler/TableHandler.js +3 -2
  20. package/dist/DboBuilder/TableHandler/TableHandler.js.map +1 -1
  21. package/dist/DboBuilder/TableHandler/delete.d.ts.map +1 -1
  22. package/dist/DboBuilder/TableHandler/delete.js +4 -3
  23. package/dist/DboBuilder/TableHandler/delete.js.map +1 -1
  24. package/dist/DboBuilder/TableHandler/executeAfterHooksCheckAndPostValidation.d.ts.map +1 -1
  25. package/dist/DboBuilder/TableHandler/executeAfterHooksCheckAndPostValidation.js +7 -6
  26. package/dist/DboBuilder/TableHandler/executeAfterHooksCheckAndPostValidation.js.map +1 -1
  27. package/dist/DboBuilder/ViewHandler/ViewHandler.d.ts +1 -1
  28. package/dist/DboBuilder/ViewHandler/ViewHandler.d.ts.map +1 -1
  29. package/dist/DboBuilder/schema/getTablesForSchemaPostgresSQL.d.ts +2 -2
  30. package/dist/ExecutionContext.d.ts +32 -0
  31. package/dist/ExecutionContext.d.ts.map +1 -0
  32. package/dist/ExecutionContext.js +25 -0
  33. package/dist/ExecutionContext.js.map +1 -0
  34. package/dist/JSONBSchemaValidation/validateJSONBSchemaSQL.d.ts +1 -1
  35. package/dist/Prostgles.d.ts +5 -0
  36. package/dist/Prostgles.d.ts.map +1 -1
  37. package/dist/Prostgles.js +5 -0
  38. package/dist/Prostgles.js.map +1 -1
  39. package/dist/PubSubManager/PubSubManager.d.ts +1 -1
  40. package/dist/PublishParser/PublishParser.d.ts.map +1 -1
  41. package/dist/PublishParser/PublishParser.js +14 -1
  42. package/dist/PublishParser/PublishParser.js.map +1 -1
  43. package/dist/PublishParser/getFunctionRelatedRecords.d.ts +5 -0
  44. package/dist/PublishParser/getFunctionRelatedRecords.d.ts.map +1 -0
  45. package/dist/PublishParser/getFunctionRelatedRecords.js +26 -0
  46. package/dist/PublishParser/getFunctionRelatedRecords.js.map +1 -0
  47. package/dist/index.d.ts +2 -1
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/initProstgles.d.ts +3 -0
  51. package/dist/initProstgles.d.ts.map +1 -1
  52. package/dist/initProstgles.js +1 -0
  53. package/dist/initProstgles.js.map +1 -1
  54. package/dist/runClientRequest.d.ts.map +1 -1
  55. package/dist/runClientRequest.js +6 -1
  56. package/dist/runClientRequest.js.map +1 -1
  57. package/lib/DboBuilder/DboBuilder.spec.ts +3 -7
  58. package/lib/DboBuilder/DboBuilder.ts +4 -2
  59. package/lib/DboBuilder/TableHandler/TableHandler.ts +14 -11
  60. package/lib/DboBuilder/TableHandler/delete.ts +14 -11
  61. package/lib/DboBuilder/TableHandler/executeAfterHooksCheckAndPostValidation.ts +28 -21
  62. package/lib/ExecutionContext.ts +60 -0
  63. package/lib/Prostgles.ts +8 -4
  64. package/lib/PublishParser/PublishParser.ts +17 -1
  65. package/lib/PublishParser/getFunctionRelatedRecords.ts +25 -0
  66. package/lib/index.ts +2 -4
  67. package/lib/initProstgles.ts +5 -4
  68. package/lib/runClientRequest.ts +16 -8
  69. package/package.json +1 -1
@@ -0,0 +1,716 @@
1
+
2
+ > prostgles-server@4.2.648 test
3
+ > npm run test:lib && npm run test-only
4
+
5
+
6
+ > prostgles-server@4.2.648 test:lib
7
+ > rm -rf ./node_modules/* && rm -rf ./dist/* && npm i && npm run lint -- --ignore-pattern tests && tsc && node --trace-uncaught --test dist/**/*.spec.js
8
+
9
+ npm warn deprecated eslint@9.39.5: This version is no longer supported. Please see https://eslint.org/version-support for other options.
10
+
11
+ > prostgles-server@4.2.648 prepare
12
+ > npm run build
13
+
14
+
15
+ > prostgles-server@4.2.648 build
16
+ > tsc
17
+
18
+
19
+ added 226 packages, and audited 227 packages in 5s
20
+
21
+ 51 packages are looking for funding
22
+ run `npm fund` for details
23
+
24
+ 3 vulnerabilities (1 moderate, 2 high)
25
+
26
+ To address issues that do not require attention, run:
27
+ npm audit fix
28
+
29
+ To address all issues (including breaking changes), run:
30
+ npm audit fix --force
31
+
32
+ Run `npm audit` for details.
33
+
34
+ > prostgles-server@4.2.648 lint
35
+ > eslint . --ext .ts --quiet --ignore-pattern tests
36
+
37
+ ▶ DBSchemaBuilder type tests
38
+ ✔ Type checks (0.43836ms)
39
+ ✔ DBSchemaBuilder type tests (1.000624ms)
40
+ ▶ getServerFunctionReturnTypes
41
+ ✔ reads grouped functions and stops at recursive types (1088.537649ms)
42
+ ✔ getServerFunctionReturnTypes (1089.151685ms)
43
+ ▶ DboBuilder onCommit
44
+ ✔ awaits callbacks after commit and logs callback errors (1.491012ms)
45
+ ✔ discards callbacks on rollback (0.418922ms)
46
+ ✔ DboBuilder onCommit (2.532078ms)
47
+ ▶ dboBuilderUtils
48
+ ✔ getErrorAsObject circular (1.306855ms)
49
+ ✔ dboBuilderUtils (1.87916ms)
50
+ ▶ defineFunction type test
51
+ ✔ Type test (0.807868ms)
52
+ ✔ defineFunction type test (1.610997ms)
53
+ ✔ file version rules inherit fields and restrictive select options (2.758472ms)
54
+ ✔ managed files preserve hooks on other tables and append file hooks (0.82708ms)
55
+ ▶ DBOFullyTyped test
56
+ ✔ Type test (0.667622ms)
57
+ ✔ DBOFullyTyped test (1.703352ms)
58
+ ℹ tests 9
59
+ ℹ suites 6
60
+ ℹ pass 9
61
+ ℹ fail 0
62
+ ℹ cancelled 0
63
+ ℹ skipped 0
64
+ ℹ todo 0
65
+ ℹ duration_ms 1329.426996
66
+
67
+ > prostgles-server@4.2.648 test-only
68
+ > cd tests/ && ./test.sh
69
+
70
+
71
+ > prostgles-server@4.2.648 build
72
+ > tsc
73
+
74
+
75
+ > client@1.0.0 build
76
+ > rm -rf ./node_modules/* && rm -rf ./dist/* && npm i && tsc
77
+
78
+ npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
79
+
80
+ added 58 packages, and audited 59 packages in 576ms
81
+
82
+ 7 packages are looking for funding
83
+ run `npm fund` for details
84
+
85
+ found 0 vulnerabilities
86
+
87
+ > client@1.0.0 testBasicHooks
88
+ > node --test dist/client/basicHooks.spec.js
89
+
90
+ ▶ React hooks
91
+ ✔ useAsyncEffectQueue executes the first and debounces the rest (1619.424693ms)
92
+ ✔ useAsyncEffectQueue executes the first and debounces the rest if still mounted (1514.942825ms)
93
+ ✔ React hooks (3136.60205ms)
94
+ ℹ tests 2
95
+ ℹ suites 1
96
+ ℹ pass 2
97
+ ℹ fail 0
98
+ ℹ cancelled 0
99
+ ℹ skipped 0
100
+ ℹ todo 0
101
+ ℹ duration_ms 3431.575764
102
+
103
+ up to date, audited 115 packages in 4s
104
+
105
+ 28 packages are looking for funding
106
+ run `npm fund` for details
107
+
108
+ found 0 vulnerabilities
109
+
110
+ > server_tests@1.0.0 build
111
+ > rm -rf ./node_modules/* && rm -rf ./media/* && rm -rf ./dist/* && npm i && tsc
112
+
113
+
114
+ added 113 packages, and audited 115 packages in 4s
115
+
116
+ 28 packages are looking for funding
117
+ run `npm fund` for details
118
+
119
+ found 0 vulnerabilities
120
+
121
+ > prostgles-server@4.2.648 lint
122
+ > eslint . --ext .ts --quiet
123
+
124
+
125
+ > server_tests@1.0.0 test-server
126
+ > TEST_TYPE=server node --trace-uncaught --test dist/server/index.js
127
+
128
+ Prostgles: SQL file executed successfuly /home/s/prostgles-server-js/tests/server/init.sql
129
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
130
+
131
+ DROP TABLE IF EXISTS "lookup_col1" CASCADE;
132
+ CREATE TABLE IF NOT EXISTS "lookup_col1" (
133
+ id TEXT PRIMARY KEY
134
+ , "description" TEXT
135
+ );
136
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
137
+
138
+ CREATE TABLE "files" (
139
+ "id" UUID PRIMARY KEY DEFAULT gen_random_uuid() ,
140
+ "storage_key" UUID UNIQUE ,
141
+ "extension" TEXT NOT NULL DEFAULT '' ,
142
+ "content_type" TEXT NOT NULL DEFAULT '' ,
143
+ "content_length" BIGINT NOT NULL DEFAULT 0 ,
144
+ "etag" TEXT NOT NULL DEFAULT '' ,
145
+ "original_name" TEXT NOT NULL ,
146
+ "original_last_modified" TIMESTAMPTZ ,
147
+ "description" TEXT ,
148
+ "url" TEXT NOT NULL DEFAULT '' ,
149
+ "cloud_url" TEXT ,
150
+ "signed_url" TEXT ,
151
+ "signed_url_expires" BIGINT ,
152
+ "added" TIMESTAMP NOT NULL DEFAULT NOW() ,
153
+ "updated" TIMESTAMP NOT NULL DEFAULT NOW() ,
154
+ "deleted" TIMESTAMPTZ ,
155
+ "deleted_from_storage" TIMESTAMPTZ ,
156
+ "data" BYTEA NOT NULL CHECK (data = decode('01', 'hex')) ,
157
+ "version" INTEGER NOT NULL DEFAULT 1 ,
158
+ "metadata" JSONB CHECK(prostgles.validate_jsonb_schema('{"nullable":true,"type":{"description":{"type":"string"}}}'::TEXT, "metadata", '{"table":"files","column":"metadata"}' ))
159
+ );
160
+ CREATE TABLE "files_versions" (
161
+ "id" UUID PRIMARY KEY DEFAULT gen_random_uuid() ,
162
+ "storage_key" UUID NOT NULL ,
163
+ "extension" TEXT NOT NULL DEFAULT '' ,
164
+ "content_type" TEXT NOT NULL DEFAULT '' ,
165
+ "content_length" BIGINT NOT NULL DEFAULT 0 ,
166
+ "etag" TEXT NOT NULL DEFAULT '' ,
167
+ "original_name" TEXT NOT NULL ,
168
+ "original_last_modified" TIMESTAMPTZ ,
169
+ "description" TEXT ,
170
+ "url" TEXT NOT NULL DEFAULT '' ,
171
+ "cloud_url" TEXT ,
172
+ "signed_url" TEXT ,
173
+ "signed_url_expires" BIGINT ,
174
+ "added" TIMESTAMP NOT NULL DEFAULT NOW() ,
175
+ "updated" TIMESTAMP NOT NULL DEFAULT NOW() ,
176
+ "deleted" TIMESTAMPTZ ,
177
+ "deleted_from_storage" TIMESTAMPTZ ,
178
+ "file_id" UUID NOT NULL ,
179
+ "version" INTEGER NOT NULL ,
180
+ "created" TIMESTAMP NOT NULL DEFAULT NOW() ,
181
+ "metadata" JSONB CHECK(prostgles.validate_jsonb_schema('{"nullable":true,"type":{"description":{"type":"string"}}}'::TEXT, "metadata", '{"table":"files_versions","column":"metadata"}' ))
182
+ );
183
+ ALTER TABLE "files_versions" ADD CONSTRAINT "prostgles_file_version_e24fec525e76b3433749621f589d35d9" FOREIGN KEY (file_id) REFERENCES "files"(id) ON DELETE CASCADE;
184
+ CREATE UNIQUE INDEX "prostgles_file_version_9692aae50022f45f1098646939b287b1_key" ON "files_versions" (file_id, version);
185
+ COMMENT ON INDEX "prostgles_file_version_9692aae50022f45f1098646939b287b1_key" IS 'd4af15d064cae99adac0c1194199a9e3';
186
+ CREATE TABLE "users_public_info" (
187
+ "id" SERIAL PRIMARY KEY ,
188
+ "name" TEXT ,
189
+ "avatar" UUID REFERENCES files ON DELETE CASCADE ,
190
+ "sid" TEXT
191
+ );
192
+ DROP TABLE IF EXISTS "users";
193
+ CREATE TABLE "users" (
194
+ "id" SERIAL PRIMARY KEY ,
195
+ "email" TEXT NOT NULL ,
196
+ "status" TEXT NOT NULL CHECK("status" = 'active' OR "status" = 'disabled' OR "status" = 'pending'),
197
+ "type" TEXT NOT NULL ,
198
+ "preferences" JSONB NOT NULL CHECK(prostgles.validate_jsonb_schema('{"type":{"showIntro":{"type":"boolean","optional":true},"theme":{"enum":["light","dark","auto"],"optional":true},"others":{"type":"any[]"}}}'::TEXT, "preferences", '{"table":"users","column":"preferences"}' ))
199
+ );
200
+ DROP TABLE IF EXISTS "tjson";
201
+ CREATE TABLE "tjson" (
202
+ "json" JSONB NOT NULL CHECK(prostgles.validate_jsonb_schema('{"type":{"a":{"type":"boolean"},"arr":{"enum":["1","2","3"]},"arr1":{"enum":[1,2,3]},"arr2":{"type":"integer[]"},"arrStr":{"type":"string[]","optional":true,"nullable":true},"o":{"optional":true,"nullable":true,"oneOfType":[{"o1":"integer"},{"o2":"boolean"}]}}}'::TEXT, "json", '{"table":"tjson","column":"json"}' )),
203
+ "colOneOf" TEXT NOT NULL CHECK("colOneOf" = 'a' OR "colOneOf" = 'b' OR "colOneOf" = 'c'),
204
+ "status" JSONB CHECK(prostgles.validate_jsonb_schema('{"nullable":true,"oneOfType":[{"ok":{"type":"string"}},{"err":{"type":"string"}},{"loading":{"type":{"loaded":{"type":"number"},"total":{"type":"number"}}}}]}'::TEXT, "status", '{"table":"tjson","column":"status"}' )),
205
+ "jsonOneOf" JSONB CHECK(prostgles.validate_jsonb_schema('{"nullable":true,"oneOfType":[{"command":{"enum":["a"]}},{"command":{"enum":["b"]},"option":{"type":"integer[]"}}]}'::TEXT, "jsonOneOf", '{"table":"tjson","column":"jsonOneOf"}' )),
206
+ "table_config" JSONB CHECK(prostgles.validate_jsonb_schema('{"nullable":true,"type":{"referencedTables":{"optional":true,"arrayOfType":{"name":"string","minFiles":"number"}},"recType":{"nullable":true,"optional":true,"record":{"keysEnum":["a","b"],"values":{"type":{"bools":"boolean[]"}}}}}}'::TEXT, "table_config", '{"table":"tjson","column":"table_config"}' ))
207
+ );
208
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
209
+
210
+ ALTER TABLE "uuid_text" ADD FOREIGN KEY (col1) REFERENCES lookup_col1(id);
211
+ ALTER TABLE "uuid_text" ADD FOREIGN KEY (col2) REFERENCES lookup_col1(id);
212
+ ALTER TABLE "uuid_text" ADD FOREIGN KEY (col3) REFERENCES lookup_col1(id);
213
+ DROP TABLE IF EXISTS "api_table";
214
+ CREATE TABLE "api_table" (
215
+ "id" SERIAL PRIMARY KEY
216
+ );
217
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
218
+ Prostgles: Created typescript schema definition file:
219
+ DBGeneratedSchema.ts
220
+ (server): prostgles onReady
221
+ IO missing. Publish has no effect without io or restApi
222
+ IO missing. Publish has no effect without io or restApi
223
+ destroying prgl instance
224
+ destroying prgl instance
225
+ ▶ Server Only Queries
226
+ ✖ execution context follows functions, hooks and deferred transaction callbacks (2477.336471ms)
227
+ ✔ column definition row types support SQL aliases, arrays and generated columns (13.289379ms)
228
+ ✔ lookup types propagate through database references while preserving overrides (17.986234ms)
229
+ ✔ lookup types follow FK chains by column and terminate cycles (158.153376ms)
230
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
231
+
232
+ CREATE TABLE "files" (
233
+ "id" UUID PRIMARY KEY DEFAULT gen_random_uuid() ,
234
+ "storage_key" UUID UNIQUE ,
235
+ "extension" TEXT NOT NULL DEFAULT '' ,
236
+ "content_type" TEXT NOT NULL DEFAULT '' ,
237
+ "content_length" BIGINT NOT NULL DEFAULT 0 ,
238
+ "etag" TEXT NOT NULL DEFAULT '' ,
239
+ "original_name" TEXT NOT NULL ,
240
+ "original_last_modified" TIMESTAMPTZ ,
241
+ "description" TEXT ,
242
+ "url" TEXT NOT NULL DEFAULT '' ,
243
+ "cloud_url" TEXT ,
244
+ "signed_url" TEXT ,
245
+ "signed_url_expires" BIGINT ,
246
+ "added" TIMESTAMP NOT NULL DEFAULT NOW() ,
247
+ "updated" TIMESTAMP NOT NULL DEFAULT NOW() ,
248
+ "deleted" TIMESTAMPTZ ,
249
+ "deleted_from_storage" TIMESTAMPTZ ,
250
+ "data" BYTEA NOT NULL CHECK (data = decode('01', 'hex'))
251
+ );
252
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
253
+ Prostgles: Created typescript schema definition file:
254
+ DBGeneratedSchema.ts
255
+ Prostgles: Created typescript schema definition file:
256
+ DBGeneratedSchema.ts
257
+ ▶ client publish profiles compile at startup and follow user types
258
+ ✔ server user handlers enforce permissions and reject client impersonation (39.204511ms)
259
+ ✔ a rejected guest abort cannot cancel a later server-user query (2.990081ms)
260
+ ✔ caught subscription errors still roll back client transactions (5.507428ms)
261
+ ✔ caught checkFilter errors still roll back client transactions (16.594146ms)
262
+ ✔ caught postValidate errors still roll back client transactions (6.03732ms)
263
+ No options changed
264
+ Prostgles: Created typescript schema definition file:
265
+ DBGeneratedSchema.ts
266
+ Prostgles: Created typescript schema definition file:
267
+ DBGeneratedSchema.ts
268
+ Prostgles: Created typescript schema definition file:
269
+ DBGeneratedSchema.ts
270
+ Prostgles: Created typescript schema definition file:
271
+ DBGeneratedSchema.ts
272
+ destroying prgl instance
273
+ ✔ server user handlers require configured authentication (1.000482ms)
274
+ ✔ client publish profiles compile at startup and follow user types (2018.602124ms)
275
+ ▶ Managed storage permission and transaction safety
276
+ ✔ legacy ID-based files remain readable and replaceable (26.271023ms)
277
+ ✔ custom columns do not require or interfere with file data (32.372287ms)
278
+ ✔ filtered updates and failed validation preserve storage (13.310933ms)
279
+ ✔ failed uploads and application hooks leave no replacement objects (41.646073ms)
280
+ ✔ duplicate IDs, conflict updates and SQL-only requests cannot overwrite (37.668672ms)
281
+ ✔ PostgreSQL update policies are enforced before uploading (11.023032ms)
282
+ ✔ RLS-hidden references fail closed during storage cleanup (4.654117ms)
283
+ ✔ beforeEach lifecycle callbacks follow the outer transaction (32.869696ms)
284
+ ✔ outer rollback preserves replaced and deleted objects (23.314483ms)
285
+ ✔ a failed multi-insert waits for other uploads before cleanup (4.64158ms)
286
+ ✔ concurrent replacements leave one complete referenced object (22.653676ms)
287
+ ✔ version retention removes only unreferenced objects (68.577513ms)
288
+ ✔ foreign-key failure preserves bytes and deletion waits for commit (27.069954ms)
289
+ ✔ cloud downloads and cleanup use the committed storage key (63.625033ms)
290
+ ✔ Managed storage permission and transaction safety (430.918776ms)
291
+ destroying prgl instance
292
+ destroying prgl instance
293
+ ✔ custom joins add conditions unless override is requested (2369.657082ms)
294
+ destroying prgl instance
295
+ ✔ custom self joins use configured paths and override inferred joins (1208.461366ms)
296
+ destroying prgl instance
297
+ destroying prgl instance
298
+ destroying prgl instance
299
+ ✔ destroy allows reusing Socket.IO on a running HTTP server (3389.215329ms)
300
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
301
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
302
+
303
+ CREATE TABLE "audit_events" (
304
+ "id" BIGSERIAL PRIMARY KEY ,
305
+ "created_at" TIMESTAMPTZ NOT NULL DEFAULT clock_timestamp() ,
306
+ "schema_name" TEXT NOT NULL ,
307
+ "table_name" TEXT NOT NULL ,
308
+ "operation" TEXT NOT NULL CHECK("operation" = 'INSERT' OR "operation" = 'UPDATE' OR "operation" = 'DELETE'),
309
+ "old_id" JSONB ,
310
+ "new_id" JSONB ,
311
+ "old_row" JSONB ,
312
+ "new_row" JSONB ,
313
+ "actor" JSONB ,
314
+ "db_context" JSONB NOT NULL CHECK(prostgles.validate_jsonb_schema('{"type":{"transaction_id":"string","transaction_started_at":"string","statement_started_at":"string","current_role":"string","session_user":"string","application_name":"string"}}'::TEXT, "db_context", '{"table":"audit_events","column":"db_context"}' ))
315
+ );
316
+ CREATE TABLE "audit_test_files" (
317
+ "id" UUID PRIMARY KEY DEFAULT gen_random_uuid() ,
318
+ "storage_key" UUID UNIQUE ,
319
+ "extension" TEXT NOT NULL DEFAULT '' ,
320
+ "content_type" TEXT NOT NULL DEFAULT '' ,
321
+ "content_length" BIGINT NOT NULL DEFAULT 0 ,
322
+ "etag" TEXT NOT NULL DEFAULT '' ,
323
+ "original_name" TEXT NOT NULL ,
324
+ "original_last_modified" TIMESTAMPTZ ,
325
+ "description" TEXT ,
326
+ "url" TEXT NOT NULL DEFAULT '' ,
327
+ "cloud_url" TEXT ,
328
+ "signed_url" TEXT ,
329
+ "signed_url_expires" BIGINT ,
330
+ "added" TIMESTAMP NOT NULL DEFAULT NOW() ,
331
+ "updated" TIMESTAMP NOT NULL DEFAULT NOW() ,
332
+ "deleted" TIMESTAMPTZ ,
333
+ "deleted_from_storage" TIMESTAMPTZ ,
334
+ "data" BYTEA NOT NULL CHECK (data = decode('01', 'hex'))
335
+ );
336
+ CREATE TABLE "audit_test_source" (
337
+ "a" int NOT NULL ,
338
+ "b" text NOT NULL ,
339
+ "value" text ,
340
+ "secret" text
341
+ );
342
+ ALTER TABLE "audit_test_source" ADD PRIMARY KEY (a, b);
343
+ CREATE TABLE "audit_test_documents" (
344
+ "id" serial PRIMARY KEY ,
345
+ "file_id" uuid NOT NULL REFERENCES audit_test_files(id)
346
+ );
347
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
348
+ IO missing. Publish has no effect without io or restApi
349
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
350
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
351
+ IO missing. Publish has no effect without io or restApi
352
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
353
+ IO missing. Publish has no effect without io or restApi
354
+ destroying prgl instance
355
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
356
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
357
+ IO missing. Publish has no effect without io or restApi
358
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
359
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
360
+ IO missing. Publish has no effect without io or restApi
361
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
362
+ Trace: Error: audit.tables cannot mix enabled and disabled entries
363
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:19:15)
364
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
365
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
366
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
367
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
368
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
369
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
370
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
371
+ at async waitForActual (node:assert:646:5)
372
+ at async strict.rejects (node:assert:769:25)
373
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:485:17)
374
+ at async Test.run (node:internal/test_runner/test:1125:7)
375
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
376
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
377
+ Trace: Error: Unknown audit table: missing_table
378
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:23:19)
379
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
380
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
381
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
382
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
383
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
384
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
385
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
386
+ at async waitForActual (node:assert:646:5)
387
+ at async strict.rejects (node:assert:769:25)
388
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:485:17)
389
+ at async Test.run (node:internal/test_runner/test:1125:7)
390
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
391
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
392
+ Trace: Error: audit.idColumns is required for audit_test_nopk without a primary key
393
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:45:19)
394
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
395
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
396
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
397
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
398
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
399
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
400
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
401
+ at async waitForActual (node:assert:646:5)
402
+ at async strict.rejects (node:assert:769:25)
403
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:485:17)
404
+ at async Test.run (node:internal/test_runner/test:1125:7)
405
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
406
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
407
+ Trace: Error: Unsupported audit target: audit_test_view
408
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:37:23)
409
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
410
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
411
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
412
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
413
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
414
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
415
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
416
+ at async waitForActual (node:assert:646:5)
417
+ at async strict.rejects (node:assert:769:25)
418
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:485:17)
419
+ at async Test.run (node:internal/test_runner/test:1125:7)
420
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
421
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
422
+ Trace: Error: Audit identity columns cannot be excluded: audit_test_source
423
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:54:19)
424
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
425
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
426
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
427
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
428
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
429
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
430
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
431
+ at async waitForActual (node:assert:646:5)
432
+ at async strict.rejects (node:assert:769:25)
433
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:485:17)
434
+ at async Test.run (node:internal/test_runner/test:1125:7)
435
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
436
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
437
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
438
+ IO missing. Publish has no effect without io or restApi
439
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
440
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
441
+ IO missing. Publish has no effect without io or restApi
442
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
443
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
444
+ IO missing. Publish has no effect without io or restApi
445
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
446
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
447
+ IO missing. Publish has no effect without io or restApi
448
+ Prostgles: SQL file executed successfuly /tmp/prostgles-audit-LGG9a3/init.sql
449
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
450
+ IO missing. Publish has no effect without io or restApi
451
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
452
+ IO missing. Publish has no effect without io or restApi
453
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
454
+ IO missing. Publish has no effect without io or restApi
455
+ Trace: Error: audit.idColumns is required for audit_test_nopk without a primary key
456
+ at parseAuditConfig (/home/s/prostgles-server-js/dist/Audit/parseAuditConfig.js:45:19)
457
+ at get resolvedAuditConfig (/home/s/prostgles-server-js/dist/Prostgles.js:136:56)
458
+ at get mergedTableConfig (/home/s/prostgles-server-js/dist/Prostgles.js:148:28)
459
+ at syncTableTriggers (/home/s/prostgles-server-js/dist/TableConfig/syncTableTriggers.js:8:25)
460
+ at /home/s/prostgles-server-js/dist/initProstgles.js:99:61
461
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
462
+ at Prostgles.initProstgles (/home/s/prostgles-server-js/dist/initProstgles.js:199:17)
463
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
464
+ at async updateConfiguration (/home/s/prostgles-server-js/dist/updateConfiguration.js:58:9)
465
+ at async Object.update (/home/s/prostgles-server-js/dist/initProstgles.js:162:17)
466
+ at async waitForActual (node:assert:646:5)
467
+ at async strict.rejects (node:assert:769:25)
468
+ at async TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/audit.spec.js:535:13)
469
+ at async Test.run (node:internal/test_runner/test:1125:7)
470
+ at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7)
471
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
472
+ IO missing. Publish has no effect without io or restApi
473
+ Running queries: /* prostgles internal query that should be excluded from schema watch */
474
+
475
+ CREATE TABLE "audit_next_events" (
476
+ "id" BIGSERIAL PRIMARY KEY ,
477
+ "created_at" TIMESTAMPTZ NOT NULL DEFAULT clock_timestamp() ,
478
+ "schema_name" TEXT NOT NULL ,
479
+ "table_name" TEXT NOT NULL ,
480
+ "operation" TEXT NOT NULL CHECK("operation" = 'INSERT' OR "operation" = 'UPDATE' OR "operation" = 'DELETE'),
481
+ "old_id" JSONB ,
482
+ "new_id" JSONB ,
483
+ "old_row" JSONB ,
484
+ "new_row" JSONB ,
485
+ "actor" JSONB ,
486
+ "db_context" JSONB NOT NULL CHECK(prostgles.validate_jsonb_schema('{"type":{"transaction_id":"string","transaction_started_at":"string","statement_started_at":"string","current_role":"string","session_user":"string","application_name":"string"}}'::TEXT, "db_context", '{"table":"audit_next_events","column":"db_context"}' ))
487
+ );
488
+ Prostgles: Initiated file manager. Max allowed file size: 1MB (maxHttpBufferSize = 1e6). To increase this set maxHttpBufferSize in socket.io server init options
489
+ IO missing. Publish has no effect without io or restApi
490
+ destroying prgl instance
491
+ ✔ Managed audit setup, row history, protection, access and query readiness (8832.607033ms)
492
+ ✔ getJSONBSchemaValidationErrorAsync with real db handlers (2.167392ms)
493
+ ✔ Parallel subscription at init causing crash in getPubSubManager: duplicate key value violates unique constraint "apps_pkey" (101.035435ms)
494
+ ✔ RLS context is isolated across implicit transactions, commit, rollback and pool reuse (18.452306ms)
495
+ ✔ subscription and sync reads isolate users with a real RLS policy (8.71248ms)
496
+ ✔ ordinary beforeEach hooks transform inputs before validation (32.504035ms)
497
+ ✔ multi false is checked after beforeEach and rolls back the update (8.21967ms)
498
+ ✔ ordinary beforeEach hooks run before PostgreSQL UPDATE policy checks (8.282339ms)
499
+ ✔ before and after hooks preserve RLS across dbx and raw tx calls (10.856561ms)
500
+ ▶ post-transaction hooks receive committed and authenticated context
501
+ ✔ afterCommit runs after commit, filters changed fields and skips rollback (25.879903ms)
502
+ ✔ clearing a watched field runs before, after and commit hooks (7.760256ms)
503
+ ✔ client updateBatch runs hooks atomically in implicit and explicit transactions (46.395779ms)
504
+ destroying prgl instance
505
+ ✔ server-user requests preserve tenant_id from sessionFields (1.659004ms)
506
+ ✔ post-transaction hooks receive committed and authenticated context (1286.645468ms)
507
+ ✔ Self reference recursion bug (4.655103ms)
508
+ ✔ Transactions (17.4212ms)
509
+ (server): Server-only query tests successful
510
+ (server): Starting isomorphic queries
511
+ ✔ TableConfig onMount works (3.668468ms)
512
+ ✖ Server Only Queries (22421.546622ms)
513
+ (server): DELETING items
514
+ ▶ Isomorphic queries
515
+ ✔ Deleting stale data (24.281553ms)
516
+ ✔ Error structure malformed array literal (15.454125ms)
517
+ ✔ Table info (0.30473ms)
518
+ ✔ Prepare data (31.594775ms)
519
+ ✔ Test bytea (6.136994ms)
520
+ ✔ abortSignal terminates a running query (5537.893861ms)
521
+ ✔ Client queries are aborted no more than after n seconds (0.398335ms)
522
+ ✔ Subscription tracked_columns get merged correctly (26.022266ms)
523
+ ✔ Aggregate subscription tracks FILTER and ORDER BY dependencies (972.130921ms)
524
+ ✔ CASE select and subscription dependencies (654.011547ms)
525
+ ✔ Subscription tracks non-selected ORDER BY columns (650.028765ms)
526
+ ✔ merge json (13.805984ms)
527
+ ✔ json array converted to pg array filter bug (1.822584ms)
528
+ ✔ onConflict do update (7.160418ms)
529
+ ✔ Local file upload (43.05641ms)
530
+ ✔ Local file delete (20.91261ms)
531
+ ✔ Local file update (37.820729ms)
532
+ ✔ getColumns definition (1.145151ms)
533
+ ✔ returnType (0.482763ms)
534
+ ✔ Table config triggers (5.883491ms)
535
+ ✔ $unnest_words (1.424735ms)
536
+ ✔ Group by/Distinct (3.78684ms)
537
+ ✔ sql returntype default-with-rollback (18.597161ms)
538
+ ✔ returnType: value (1.866575ms)
539
+ ✔ PostgreSQL array element (6.067605ms)
540
+ ✔ FTS filtering (7.016579ms)
541
+ ✔ $term_highlight (6.153878ms)
542
+ ✔ funcFilters: $term_highlight (2.953476ms)
543
+ (server): [{"name":null}]
544
+ (server): [{"name":"zz3zz1"}]
545
+ (server): []
546
+ ✔ subscribe skipChangedColumnsCheck false by default = sub should not fire if selected data did not change (856.688725ms)
547
+ (server): [{"name":null}]
548
+ (server): [{"name":"zz3zz1"}]
549
+ (server): [{"name":"zz3zz1"}]
550
+ (server): [{"name":"zz3zz1"}]
551
+ (server): []
552
+ ✔ subscribe skipChangedColumnsCheck true (3387.642077ms)
553
+ unsubscribe start - various
554
+ unsubscribe end - various
555
+ ✔ subscribe (44.439094ms)
556
+ ✔ subscribe to schema.table (18.931528ms)
557
+ ✔ parallel subscriptions (2028.170114ms)
558
+ (server): updateAll done in 1739
559
+ (server): updateAll done in 1692
560
+ (server): Locks: [{"pid":202,"blocking_pids":[204,155],"wait_event":"object","wait_event_type":"Lock","query":"commit","blocking_query":"commit"}]
561
+ (server): updateAll done in 2088
562
+ ✔ subscriptions do not serialize transactions (10038.786782ms)
563
+ Created PubSubManager
564
+ throttling sub for 1700 ms
565
+ ✔ subscribeOne with throttle (1738.338816ms)
566
+ throttling finished. pushSubData...
567
+ throttling sub for 1700 ms
568
+ ✔ subscribeOne with throttle skipFirst: true (1711.481743ms)
569
+ ✔ subscribeOne without skipFirst (1030.664571ms)
570
+ ✔ subscribeOne with skipFirst: true (1521.455275ms)
571
+ ✔ subscribeOne actions: { insert: true } (1538.52457ms)
572
+ ✔ subscribeOne actions: { insert: false } (1543.738935ms)
573
+ ✔ JSON filtering (4.646417ms)
574
+ ✔ Complex filtering (3.588589ms)
575
+ ✔ template_string function (4.335346ms)
576
+ ✔ Between filtering (2.6109ms)
577
+ ✔ In filtering (2.427648ms)
578
+ ✔ Order by (2.561812ms)
579
+ ✔ Order by aliased func (1.277019ms)
580
+ ✔ Filter by aliased func (0.98807ms)
581
+ ✔ Count with Filter by aliased func (1.434435ms)
582
+ ✔ Count with Aggregate and Filter by aliased func (1.2649ms)
583
+ ✔ Count with complex filter (1.570119ms)
584
+ ✔ Order by aggregation (0.661061ms)
585
+ ✔ Aggregate FILTER and ORDER BY (0.851415ms)
586
+ ✔ Column alias func (0.662607ms)
587
+ ✔ Order by colliding alias name (0.598993ms)
588
+ ✔ Update batch example (2.225861ms)
589
+ TODO: socket.io stringifies dates
590
+ ✔ Function example (7.602052ms)
591
+ ✔ JSONB filtering (4.597839ms)
592
+ ✔ Postgis examples (16.739392ms)
593
+ ✔ jsonbSchema validation (6.814001ms)
594
+ ✔ find and findOne (0.94804ms)
595
+ ✔ Result size (1.165031ms)
596
+ ✔ Basic exists (1.26457ms)
597
+ ✔ Basic fts with shorthand notation (3.257112ms)
598
+ ✔ Exists with shortest path wildcard filter example (3.400715ms)
599
+ ✔ Exists with exact path filter example (1.428284ms)
600
+ ✔ Not Exists with exact path filter example (1.656041ms)
601
+ ✔ Upsert example (23.95769ms)
602
+ ✔ Joins example (2.219647ms)
603
+ ✔ Joins repeating table example (3.0203ms)
604
+ ✔ Join aggregate functions example (15.492008ms)
605
+ ✔ $rowhash example (5.901895ms)
606
+ ✔ Reference column nested insert (12.248163ms)
607
+ ✔ Join escaped table names with quotes (14.121446ms)
608
+ (server): {
609
+ "item": {
610
+ "\"id0\"": 1,
611
+ "\"quoted1_id\"": 1,
612
+ "\"text_col0\"": "0"
613
+ },
614
+ "runs": 0
615
+ }
616
+ (server): {
617
+ "item": {
618
+ "\"id0\"": 1,
619
+ "\"quoted1_id\"": 1,
620
+ "\"text_col0\"": "1"
621
+ },
622
+ "runs": 1
623
+ }
624
+ unsubscribe start - """quoted0"""
625
+ unsubscribe end - """quoted0"""
626
+ ✔ subscribe to escaped table name (24.21343ms)
627
+ ✔ subscribe using a filter bigger than block_size (16.943863ms)
628
+ ✔ Reverse join with agg (19.81467ms)
629
+ {
630
+ _rows: [
631
+ { id: 1, t1: null, tr2: [Array], tr3: [] },
632
+ { id: 2, t1: null, tr2: [Array], tr3: [] }
633
+ ],
634
+ runs: 1
635
+ }
636
+ {
637
+ _rows: [
638
+ { id: 1, t1: null, tr2: [Array], tr3: [] },
639
+ { id: 2, t1: null, tr2: [Array], tr3: [] }
640
+ ],
641
+ runs: 2
642
+ }
643
+ ✔ Related table subscribe (9055.54029ms)
644
+ ✔ Aggregate FILTER registers joined dependency triggers (671.061428ms)
645
+ ✔ Nested sort by computed col (10.403993ms)
646
+ ✔ Nested function on different than source column getNewQuery name bug fix (2.517483ms)
647
+ ✔ Reference column deep nested insert (12.418938ms)
648
+ ✔ Multi reference column nested insert (10.368676ms)
649
+ ✔ Join path with order by nested (9.54457ms)
650
+ ✔ Self join (17.195014ms)
651
+ ✔ One to many multi join duplicate row bug fix (9.456191ms)
652
+ (server): various id=99 count 1
653
+ (server): various id=99 count
654
+ ok
655
+ (server): various id=99 count
656
+ (server): Error in subscription callback: {"message":"column prostgles_root_table_alias.name does not exist","length":130,"name":"error","severity":"ERROR","code":"42703","position":"107","file":"parse_relation.c","line":"3716","routine":"errorMissingColumn","query":"-- prostgles query id: f8880078-5ed1-49f0-b914-dc57f5beffc9\nSET LOCAL \"prostgles.user\" \nTO '';\nSELECT \n \"prostgles_root_table_alias\".\"name\" AS \"name\" \n FROM ( \n SELECT * \n FROM various \n WHERE \"id\" = 99 \n ) prostgles_root_table_alias \n LIMIT 1000","code_info":"undefined_column"}
657
+ ok
658
+ ✔ subscribe triggers with stale schema should fail gracefully and never block other queries (6544.444113ms)
659
+ ✔ Isomorphic queries (50124.830136ms)
660
+ ✔ Having clause (4.151327ms)
661
+ ✔ Having clause with complex filter (2.567782ms)
662
+ (server): Server isomorphic tests successful
663
+ (server): Stopping server ...
664
+ ℹ tests 135
665
+ ℹ suites 2
666
+ ℹ pass 134
667
+ ℹ fail 1
668
+ ℹ cancelled 0
669
+ ℹ skipped 0
670
+ ℹ todo 0
671
+ ℹ duration_ms 78523.749309
672
+
673
+ ✖ failing tests:
674
+
675
+ test at dist/server/executionContext.spec.js:10:32
676
+ ✖ execution context follows functions, hooks and deferred transaction callbacks (2477.336471ms)
677
+ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
678
+ + actual - expected
679
+
680
+ [
681
+ {
682
+ + '$and': [
683
+ + {},
684
+ + {
685
+ + value: {
686
+ + '$in': [
687
+ + 'no key',
688
+ + 'downstream'
689
+ + ]
690
+ + }
691
+ + }
692
+ + ]
693
+ - value: {
694
+ - '$in': [
695
+ - 'no key',
696
+ - 'downstream'
697
+ - ]
698
+ - }
699
+ }
700
+ ]
701
+
702
+ at TestContext.<anonymous> (/home/s/prostgles-server-js/tests/server/dist/server/executionContext.spec.js:190:34)
703
+ at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
704
+ at async Test.run (node:internal/test_runner/test:1125:7)
705
+ at async Promise.all (index 0)
706
+ at async Suite.run (node:internal/test_runner/test:1533:7)
707
+ at async startSubtestAfterBootstrap (node:internal/test_runner/harness:358:3)
708
+ at async serverOnlyQueries (/home/s/prostgles-server-js/tests/server/dist/serverOnlyQueries.spec.js:16:5)
709
+ at async onReady (/home/s/prostgles-server-js/tests/server/dist/server/index.js:421:21) {
710
+ generatedMessage: true,
711
+ code: 'ERR_ASSERTION',
712
+ actual: [ { '$and': [Array] } ],
713
+ expected: [ { value: [Object] } ],
714
+ operator: 'deepStrictEqual',
715
+ diff: 'simple'
716
+ }