orez 0.2.27 → 0.2.30

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 (157) hide show
  1. package/dist/cf-do/worker.d.ts +3 -0
  2. package/dist/cf-do/worker.d.ts.map +1 -1
  3. package/dist/cf-do/worker.js +37 -15
  4. package/dist/cf-do/worker.js.map +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +8 -0
  7. package/dist/index.js.map +1 -1
  8. package/package.json +3 -4
  9. package/src/admin/admin-data.test.ts +0 -348
  10. package/src/admin/http-proxy.ts +0 -252
  11. package/src/admin/log-store.ts +0 -192
  12. package/src/admin/server.ts +0 -471
  13. package/src/admin/ui.ts +0 -1322
  14. package/src/bench/proxy-throughput.bench.ts +0 -343
  15. package/src/bench/serial-mutations.bench.ts +0 -270
  16. package/src/browser.ts +0 -203
  17. package/src/cf-do/.wrangler/cache/cf.json +0 -1
  18. package/src/cf-do/.wrangler/state/v3/cache/miniflare-CacheObject/metadata.sqlite +0 -0
  19. package/src/cf-do/.wrangler/state/v3/cache/miniflare-CacheObject/metadata.sqlite-shm +0 -0
  20. package/src/cf-do/.wrangler/state/v3/cache/miniflare-CacheObject/metadata.sqlite-wal +0 -0
  21. package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/0ffaabee41a60e04dd0eb7db3073f0a40139e6a97ccd26823967acb652b89a7b.sqlite +0 -0
  22. package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/metadata.sqlite +0 -0
  23. package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/metadata.sqlite-shm +0 -0
  24. package/src/cf-do/.wrangler/state/v3/do/zero-do-ZeroDO/metadata.sqlite-wal +0 -0
  25. package/src/cf-do/.wrangler/tmp/bundle-0z4CpE/middleware-insertion-facade.js +0 -11
  26. package/src/cf-do/.wrangler/tmp/bundle-0z4CpE/middleware-loader.entry.ts +0 -134
  27. package/src/cf-do/.wrangler/tmp/bundle-vYmw0E/middleware-insertion-facade.js +0 -11
  28. package/src/cf-do/.wrangler/tmp/bundle-vYmw0E/middleware-loader.entry.ts +0 -134
  29. package/src/cf-do/.wrangler/tmp/dev-cbILNo/worker.js +0 -1059
  30. package/src/cf-do/.wrangler/tmp/dev-cbILNo/worker.js.map +0 -8
  31. package/src/cf-do/.wrangler/tmp/dev-qbho19/worker.js +0 -1059
  32. package/src/cf-do/.wrangler/tmp/dev-qbho19/worker.js.map +0 -8
  33. package/src/cf-do/ARCHITECTURE.md +0 -93
  34. package/src/cf-do/CHAT_E2E.md +0 -213
  35. package/src/cf-do/watermark.test.ts +0 -103
  36. package/src/cf-do/watermark.ts +0 -118
  37. package/src/cf-do/worker.ts +0 -1041
  38. package/src/cf-do/wrangler.toml +0 -11
  39. package/src/cf-pglite/README.md +0 -19
  40. package/src/change-tracking.ts +0 -25
  41. package/src/child-process.test.ts +0 -147
  42. package/src/child-process.ts +0 -90
  43. package/src/cli-entry.ts +0 -72
  44. package/src/cli.test.ts +0 -40
  45. package/src/cli.ts +0 -1214
  46. package/src/config.ts +0 -150
  47. package/src/do-sql-tracking.test.ts +0 -19
  48. package/src/do-sql-tracking.ts +0 -19
  49. package/src/index.ts +0 -1215
  50. package/src/integration/integration.test.ts +0 -517
  51. package/src/integration/native-binary.guard.test.ts +0 -13
  52. package/src/integration/native-startup.test.ts +0 -44
  53. package/src/integration/replication-latency.test.ts +0 -428
  54. package/src/integration/restore-live-stress.test.ts +0 -433
  55. package/src/integration/restore-reset.test.ts +0 -400
  56. package/src/integration/restore.test.ts +0 -274
  57. package/src/integration/test-permissions.ts +0 -147
  58. package/src/load-config.ts +0 -46
  59. package/src/log.ts +0 -96
  60. package/src/mutex.ts +0 -47
  61. package/src/pg-proxy-browser.singledb.test.ts +0 -233
  62. package/src/pg-proxy-browser.ts +0 -2022
  63. package/src/pg-proxy-do-backend.test.ts +0 -3890
  64. package/src/pg-proxy-do-backend.ts +0 -7191
  65. package/src/pg-proxy.ts +0 -1087
  66. package/src/pg-sqlite-compiler/README.md +0 -53
  67. package/src/pg-sqlite-compiler/catalog/seed.ts +0 -524
  68. package/src/pg-sqlite-compiler/fixtures/pgsqlite/arithmetic.json +0 -307
  69. package/src/pg-sqlite-compiler/fixtures/pgsqlite/array.json +0 -377
  70. package/src/pg-sqlite-compiler/fixtures/pgsqlite/cast.json +0 -12
  71. package/src/pg-sqlite-compiler/fixtures/pgsqlite/catalog.json +0 -447
  72. package/src/pg-sqlite-compiler/fixtures/pgsqlite/create-table.json +0 -32
  73. package/src/pg-sqlite-compiler/fixtures/pgsqlite/datetime.json +0 -397
  74. package/src/pg-sqlite-compiler/fixtures/pgsqlite/enum.json +0 -337
  75. package/src/pg-sqlite-compiler/fixtures/pgsqlite/insert.json +0 -337
  76. package/src/pg-sqlite-compiler/fixtures/pgsqlite/json.json +0 -537
  77. package/src/pg-sqlite-compiler/fixtures/pgsqlite/misc.json +0 -1837
  78. package/src/pg-sqlite-compiler/index.ts +0 -73
  79. package/src/pg-sqlite-compiler/integration.test.ts +0 -136
  80. package/src/pg-sqlite-compiler/passes/ast-utils.ts +0 -113
  81. package/src/pg-sqlite-compiler/passes/catalog.ts +0 -65
  82. package/src/pg-sqlite-compiler/passes/datetime.ts +0 -74
  83. package/src/pg-sqlite-compiler/passes/index.ts +0 -49
  84. package/src/pg-sqlite-compiler/passes/types.ts +0 -156
  85. package/src/pg-sqlite-compiler/smoke.test.ts +0 -69
  86. package/src/pg-sqlite-compiler/test/catalog.test.ts +0 -171
  87. package/src/pg-sqlite-compiler/test/corpus.test.ts +0 -161
  88. package/src/pg-sqlite-compiler/test/datetime.oracle.test.ts +0 -102
  89. package/src/pg-sqlite-compiler/test/oracle.ts +0 -237
  90. package/src/pg-sqlite-compiler/test/types.test.ts +0 -109
  91. package/src/pg-sqlite-compiler/types.ts +0 -63
  92. package/src/pglite-ipc.test.ts +0 -116
  93. package/src/pglite-ipc.ts +0 -266
  94. package/src/pglite-manager.ts +0 -557
  95. package/src/pglite-web-proxy.test.ts +0 -57
  96. package/src/pglite-web-proxy.ts +0 -221
  97. package/src/pglite-web-worker.ts +0 -152
  98. package/src/pglite-worker-thread.ts +0 -253
  99. package/src/port.ts +0 -25
  100. package/src/process-title.ts +0 -9
  101. package/src/recovery.ts +0 -155
  102. package/src/replication/change-tracker.test.ts +0 -357
  103. package/src/replication/change-tracker.ts +0 -279
  104. package/src/replication/handler.test.ts +0 -511
  105. package/src/replication/handler.ts +0 -1190
  106. package/src/replication/pgoutput-encoder.test.ts +0 -697
  107. package/src/replication/pgoutput-encoder.ts +0 -373
  108. package/src/replication/tcp-replication.test.ts +0 -876
  109. package/src/replication/zero-compat.test.ts +0 -1150
  110. package/src/restore-stress.test.ts +0 -188
  111. package/src/s3-local.ts +0 -203
  112. package/src/shim/hooks.mjs +0 -120
  113. package/src/shim/register.mjs +0 -4
  114. package/src/sqlite-mode/apply-mode.ts +0 -224
  115. package/src/sqlite-mode/index.ts +0 -15
  116. package/src/sqlite-mode/native-binary.ts +0 -89
  117. package/src/sqlite-mode/package-resolve.ts +0 -17
  118. package/src/sqlite-mode/resolve-mode.ts +0 -80
  119. package/src/sqlite-mode/shim-template.ts +0 -159
  120. package/src/sqlite-mode/sqlite-mode.test.ts +0 -427
  121. package/src/sqlite-mode/types.ts +0 -30
  122. package/src/vite-plugin.ts +0 -67
  123. package/src/wasm-sqlite.test.ts +0 -537
  124. package/src/worker/browser-admin.ts +0 -52
  125. package/src/worker/browser-build-config.test.ts +0 -71
  126. package/src/worker/browser-build-config.ts +0 -109
  127. package/src/worker/browser-embed-admin.test.ts +0 -75
  128. package/src/worker/browser-embed.ts +0 -345
  129. package/src/worker/cf-patches.ts +0 -384
  130. package/src/worker/embed-integration.test.ts +0 -321
  131. package/src/worker/index.ts +0 -138
  132. package/src/worker/shims/fastify.test.ts +0 -255
  133. package/src/worker/shims/fastify.ts +0 -306
  134. package/src/worker/shims/http-service.test.ts +0 -355
  135. package/src/worker/shims/http-service.ts +0 -293
  136. package/src/worker/shims/node-stub.ts +0 -290
  137. package/src/worker/shims/oxfmt.ts +0 -3
  138. package/src/worker/shims/postgres-browser.ts +0 -59
  139. package/src/worker/shims/postgres-socket.test.ts +0 -576
  140. package/src/worker/shims/postgres-socket.ts +0 -310
  141. package/src/worker/shims/postgres.test.ts +0 -364
  142. package/src/worker/shims/postgres.ts +0 -1454
  143. package/src/worker/shims/sqlite-browser.test.ts +0 -233
  144. package/src/worker/shims/sqlite-browser.ts +0 -175
  145. package/src/worker/shims/sqlite.test.ts +0 -786
  146. package/src/worker/shims/sqlite.ts +0 -978
  147. package/src/worker/shims/stream-browser.ts +0 -15
  148. package/src/worker/shims/ws-browser.test.ts +0 -205
  149. package/src/worker/shims/ws-browser.ts +0 -248
  150. package/src/worker/shims/ws.test.ts +0 -288
  151. package/src/worker/shims/ws.ts +0 -467
  152. package/src/worker/shims/zero-process-env.ts +0 -11
  153. package/src/worker/types.ts +0 -75
  154. package/src/worker/worker-integration.test.ts +0 -223
  155. package/src/worker/worker.test.ts +0 -136
  156. package/src/worker/zero-cache-embed-cf.ts +0 -463
  157. package/src/worker/zero-cache-embed.ts +0 -277
@@ -1,447 +0,0 @@
1
- {
2
- "source": "erans/pgsqlite tests/",
3
- "bucket": "catalog",
4
- "count": 88,
5
- "cases": [
6
- {
7
- "name": "information_schema_comprehensive_test-1",
8
- "sql": "SELECT schema_name FROM information_schema.schemata ORDER BY schema_name",
9
- "source": "information_schema_comprehensive_test.rs"
10
- },
11
- {
12
- "name": "information_schema_comprehensive_test-2",
13
- "sql": "SELECT table_name, table_type FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name",
14
- "source": "information_schema_comprehensive_test.rs"
15
- },
16
- {
17
- "name": "information_schema_comprehensive_test-3",
18
- "sql": "SELECT table_name, table_type, is_insertable_into FROM information_schema.tables WHERE table_name IN ('users', 'user_posts')",
19
- "source": "information_schema_comprehensive_test.rs"
20
- },
21
- {
22
- "name": "information_schema_comprehensive_test-4",
23
- "sql": "SELECT * FROM information_schema.schemata",
24
- "source": "information_schema_comprehensive_test.rs"
25
- },
26
- {
27
- "name": "information_schema_comprehensive_test-5",
28
- "sql": "SELECT * FROM information_schema.tables LIMIT 1",
29
- "source": "information_schema_comprehensive_test.rs"
30
- },
31
- {
32
- "name": "catalog_extended_protocol_test-1",
33
- "sql": "SELECT relname, relkind FROM pg_catalog.pg_class WHERE relkind = 'r'",
34
- "source": "catalog_extended_protocol_test.rs"
35
- },
36
- {
37
- "name": "pg_proc_test-1",
38
- "sql": "SELECT proname, prokind FROM pg_proc WHERE proname = 'length'",
39
- "source": "pg_proc_test.rs"
40
- },
41
- {
42
- "name": "pg_proc_test-2",
43
- "sql": "SELECT * FROM pg_proc WHERE proname = 'count'",
44
- "source": "pg_proc_test.rs"
45
- },
46
- {
47
- "name": "pg_proc_test-3",
48
- "sql": "SELECT COUNT(*) FROM pg_proc",
49
- "source": "pg_proc_test.rs"
50
- },
51
- {
52
- "name": "catalog_where_basic_test-1",
53
- "sql": "SELECT relname, relkind FROM pg_catalog.pg_class",
54
- "source": "catalog_where_basic_test.rs"
55
- },
56
- {
57
- "name": "catalog_where_basic_test-2",
58
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind = 'r'",
59
- "source": "catalog_where_basic_test.rs"
60
- },
61
- {
62
- "name": "catalog_where_basic_test-3",
63
- "sql": "SELECT attname FROM pg_catalog.pg_attribute WHERE attnum > 0",
64
- "source": "catalog_where_basic_test.rs"
65
- },
66
- {
67
- "name": "catalog_where_basic_test-4",
68
- "sql": "SELECT relkind FROM pg_catalog.pg_class WHERE relkind IN ('r', 'i')",
69
- "source": "catalog_where_basic_test.rs"
70
- },
71
- {
72
- "name": "catalog_where_basic_test-5",
73
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind != 'v'",
74
- "source": "catalog_where_basic_test.rs"
75
- },
76
- {
77
- "name": "information_schema_table_constraints_test-1",
78
- "sql": "SELECT constraint_name, table_name, constraint_type FROM information_schema.table_constraints ORDER BY table_name, constraint_name",
79
- "source": "information_schema_table_constraints_test.rs"
80
- },
81
- {
82
- "name": "information_schema_table_constraints_test-2",
83
- "sql": "SELECT constraint_name, table_name, constraint_type FROM information_schema.table_constraints WHERE table_name = 'test_table'",
84
- "source": "information_schema_table_constraints_test.rs"
85
- },
86
- {
87
- "name": "information_schema_table_constraints_test-3",
88
- "sql": "SELECT * FROM information_schema.table_constraints WHERE table_name = 'simple_pk'",
89
- "source": "information_schema_table_constraints_test.rs"
90
- },
91
- {
92
- "name": "information_schema_table_constraints_test-4",
93
- "sql": "SELECT constraint_type FROM information_schema.table_constraints WHERE table_name = 'constraint_test' ORDER BY constraint_type",
94
- "source": "information_schema_table_constraints_test.rs"
95
- },
96
- {
97
- "name": "pg_index_test-1",
98
- "sql": "SELECT COUNT(*) FROM pg_index",
99
- "source": "pg_index_test.rs"
100
- },
101
- {
102
- "name": "pg_index_test-2",
103
- "sql": "SELECT indexrelid, indrelid, indnatts, indnkeyatts, indisunique, indisprimary, indkey FROM pg_index ORDER BY indexrelid",
104
- "source": "pg_index_test.rs"
105
- },
106
- {
107
- "name": "pg_index_test-3",
108
- "sql": "SELECT\n ic.relname as index_name,\n i.indnatts,\n i.indkey\n FROM pg_index i\n JOIN pg_class ic ON i.indexrelid = ic.oid\n JOIN pg_class tc ON i.indrelid = tc.oid\n WHERE tc.relname = 'products' AND i.indnatts > 1\n ORDER BY ic.relname",
109
- "source": "pg_index_test.rs"
110
- },
111
- {
112
- "name": "pg_database_simple_test-1",
113
- "sql": "SELECT datname FROM pg_database",
114
- "source": "pg_database_simple_test.rs"
115
- },
116
- {
117
- "name": "pg_database_simple_test-2",
118
- "sql": "SELECT oid, datname, datdba FROM pg_database",
119
- "source": "pg_database_simple_test.rs"
120
- },
121
- {
122
- "name": "pg_database_simple_test-3",
123
- "sql": "SELECT datname FROM pg_catalog.pg_database",
124
- "source": "pg_database_simple_test.rs"
125
- },
126
- {
127
- "name": "pg_database_simple_test-4",
128
- "sql": "SELECT 1 FROM pg_database WHERE datname = 'main'",
129
- "source": "pg_database_simple_test.rs"
130
- },
131
- {
132
- "name": "pg_database_simple_test-5",
133
- "sql": "SELECT datname, datcollate, datctype FROM pg_database ORDER BY datname",
134
- "source": "pg_database_simple_test.rs"
135
- },
136
- {
137
- "name": "pg_constraint_test-1",
138
- "sql": "SELECT conname, contype FROM pg_constraint",
139
- "source": "pg_constraint_test.rs"
140
- },
141
- {
142
- "name": "pg_constraint_test-2",
143
- "sql": "SELECT conname, contype, conrelid, confrelid, conkey, confkey FROM pg_constraint WHERE contype = 'f'",
144
- "source": "pg_constraint_test.rs"
145
- },
146
- {
147
- "name": "pg_constraint_test-3",
148
- "sql": "SELECT conname, contype, conkey FROM pg_constraint WHERE contype = 'p'",
149
- "source": "pg_constraint_test.rs"
150
- },
151
- {
152
- "name": "pg_constraint_test-4",
153
- "sql": "SELECT conname, contype, condeferrable, condeferred, convalidated FROM pg_constraint ORDER BY conname",
154
- "source": "pg_constraint_test.rs"
155
- },
156
- {
157
- "name": "pg_constraint_test-5",
158
- "sql": "SELECT conname, contype, confupdtype, confdeltype, confmatchtype FROM pg_constraint WHERE contype = 'f'",
159
- "source": "pg_constraint_test.rs"
160
- },
161
- {
162
- "name": "pg_database_test-2",
163
- "sql": "SELECT * FROM pg_database",
164
- "source": "pg_database_test.rs"
165
- },
166
- {
167
- "name": "pg_database_test-5",
168
- "sql": "SELECT datname FROM pg_database WHERE datname = 'main'",
169
- "source": "pg_database_test.rs"
170
- },
171
- {
172
- "name": "pg_database_test-6",
173
- "sql": "SELECT datname FROM pg_database WHERE datname = 'nonexistent'",
174
- "source": "pg_database_test.rs"
175
- },
176
- {
177
- "name": "pg_database_test-7",
178
- "sql": "SELECT current_database()",
179
- "source": "pg_database_test.rs"
180
- },
181
- {
182
- "name": "catalog_query_test-1",
183
- "sql": "SELECT typname FROM pg_type WHERE oid = 23",
184
- "source": "catalog_query_test.rs"
185
- },
186
- {
187
- "name": "catalog_query_test-3",
188
- "sql": "SELECT $1::int4",
189
- "source": "catalog_query_test.rs"
190
- },
191
- {
192
- "name": "information_schema_test-2",
193
- "sql": "SELECT schema_name FROM information_schema.schemata",
194
- "source": "information_schema_test.rs"
195
- },
196
- {
197
- "name": "information_schema_test-3",
198
- "sql": "SELECT table_name, table_type FROM information_schema.tables",
199
- "source": "information_schema_test.rs"
200
- },
201
- {
202
- "name": "information_schema_test-4",
203
- "sql": "SELECT * FROM information_schema.tables WHERE table_name = 'test_table'",
204
- "source": "information_schema_test.rs"
205
- },
206
- {
207
- "name": "information_schema_test-5",
208
- "sql": "SELECT table_name, table_type, is_insertable_into FROM information_schema.tables WHERE table_name IN ('test_table', 'test_view')",
209
- "source": "information_schema_test.rs"
210
- },
211
- {
212
- "name": "information_schema_test-6",
213
- "sql": "SELECT table_name, column_name, data_type, is_nullable, column_default FROM information_schema.columns WHERE table_name = 'test_table' ORDER BY ordinal_position",
214
- "source": "information_schema_test.rs"
215
- },
216
- {
217
- "name": "information_schema_test-7",
218
- "sql": "SELECT * FROM information_schema.columns WHERE table_name = 'simple_table'",
219
- "source": "information_schema_test.rs"
220
- },
221
- {
222
- "name": "information_schema_test-8",
223
- "sql": "SELECT table_catalog, table_schema, table_name, column_name, data_type FROM information_schema.columns WHERE table_name = 'column_test'",
224
- "source": "information_schema_test.rs"
225
- },
226
- {
227
- "name": "pg_constraint_debug_test-1",
228
- "sql": "SELECT * FROM pg_constraint",
229
- "source": "pg_constraint_debug_test.rs"
230
- },
231
- {
232
- "name": "catalog_basic_test-2",
233
- "sql": "SELECT * FROM pg_catalog.pg_class WHERE relkind = 'r' LIMIT 1",
234
- "source": "catalog_basic_test.rs"
235
- },
236
- {
237
- "name": "pg_depend_debug_test-1",
238
- "sql": "SELECT name FROM sqlite_master WHERE type='table' AND name='debug_table'",
239
- "source": "pg_depend_debug_test.rs"
240
- },
241
- {
242
- "name": "pg_depend_debug_test-2",
243
- "sql": "SELECT * FROM pg_depend",
244
- "source": "pg_depend_debug_test.rs"
245
- },
246
- {
247
- "name": "pg_depend_debug_test-3",
248
- "sql": "SELECT classid, objid FROM pg_depend",
249
- "source": "pg_depend_debug_test.rs"
250
- },
251
- {
252
- "name": "pg_depend_debug_test-4",
253
- "sql": "SELECT name FROM sqlite_master WHERE type='table' AND name='pg_depend'",
254
- "source": "pg_depend_debug_test.rs"
255
- },
256
- {
257
- "name": "pg_depend_debug_test-5",
258
- "sql": "SELECT sql FROM sqlite_master WHERE name = 'pg_depend'",
259
- "source": "pg_depend_debug_test.rs"
260
- },
261
- {
262
- "name": "pg_depend_debug_test-6",
263
- "sql": "PRAGMA table_info(pg_depend)",
264
- "source": "pg_depend_debug_test.rs"
265
- },
266
- {
267
- "name": "pg_depend_debug_test-7",
268
- "sql": "SELECT COUNT(*) FROM pg_depend",
269
- "source": "pg_depend_debug_test.rs"
270
- },
271
- {
272
- "name": "pg_depend_debug_test-8",
273
- "sql": "SELECT * FROM pg_depend LIMIT 3",
274
- "source": "pg_depend_debug_test.rs"
275
- },
276
- {
277
- "name": "pg_depend_debug_test-9",
278
- "sql": "SELECT value FROM __pgsqlite_metadata WHERE key = 'schema_version'",
279
- "source": "pg_depend_debug_test.rs"
280
- },
281
- {
282
- "name": "catalog_where_test-3",
283
- "sql": "SELECT relname, relkind FROM pg_catalog.pg_class WHERE relkind IN ('r', 'i')",
284
- "source": "catalog_where_test.rs"
285
- },
286
- {
287
- "name": "catalog_where_test-4",
288
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relname LIKE 'pgclass_test_%'",
289
- "source": "catalog_where_test.rs"
290
- },
291
- {
292
- "name": "catalog_where_test-5",
293
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relname = 'pgclass_test_table1'",
294
- "source": "catalog_where_test.rs"
295
- },
296
- {
297
- "name": "catalog_where_test-6",
298
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind = 'r' AND relname = 'pgclass_test_table1'",
299
- "source": "catalog_where_test.rs"
300
- },
301
- {
302
- "name": "catalog_where_test-7",
303
- "sql": "SELECT attname, attnum FROM pg_catalog.pg_attribute WHERE attnum > 0",
304
- "source": "catalog_where_test.rs"
305
- },
306
- {
307
- "name": "catalog_where_test-8",
308
- "sql": "SELECT 1 FROM pgattr_test_attrs LIMIT 1",
309
- "source": "catalog_where_test.rs"
310
- },
311
- {
312
- "name": "catalog_where_test-9",
313
- "sql": "SELECT attname, attnotnull FROM pg_catalog.pg_attribute WHERE attnum > 0",
314
- "source": "catalog_where_test.rs"
315
- },
316
- {
317
- "name": "catalog_where_test-11",
318
- "sql": "SELECT name FROM pgattr_test_attrs LIMIT 1",
319
- "source": "catalog_where_test.rs"
320
- },
321
- {
322
- "name": "catalog_where_test-12",
323
- "sql": "SELECT attname FROM pg_catalog.pg_attribute WHERE attnotnull = 't'",
324
- "source": "catalog_where_test.rs"
325
- },
326
- {
327
- "name": "catalog_where_test-13",
328
- "sql": "SELECT attname FROM pg_catalog.pg_attribute WHERE attnum > 0 AND attisdropped = 'f'",
329
- "source": "catalog_where_test.rs"
330
- },
331
- {
332
- "name": "catalog_where_test-14",
333
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind IN ('r','p') AND relnamespace = 2200",
334
- "source": "catalog_where_test.rs"
335
- },
336
- {
337
- "name": "catalog_where_test-15",
338
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind != 'i'",
339
- "source": "catalog_where_test.rs"
340
- },
341
- {
342
- "name": "catalog_where_simple_test-1",
343
- "sql": "SELECT 1",
344
- "source": "catalog_where_simple_test.rs"
345
- },
346
- {
347
- "name": "pg_depend_test-1",
348
- "sql": "SELECT classid, objid, objsubid, refclassid, refobjid, refobjsubid, deptype FROM pg_depend",
349
- "source": "pg_depend_test.rs"
350
- },
351
- {
352
- "name": "pg_depend_test-2",
353
- "sql": "SELECT * FROM pg_depend WHERE deptype = 'a'",
354
- "source": "pg_depend_test.rs"
355
- },
356
- {
357
- "name": "pg_depend_test-4",
358
- "sql": "SELECT refobjsubid FROM pg_depend WHERE deptype = 'a' ORDER BY refobjid",
359
- "source": "pg_depend_test.rs"
360
- },
361
- {
362
- "name": "information_schema_key_column_usage_test-1",
363
- "sql": "SELECT constraint_name, table_name, column_name, ordinal_position FROM information_schema.key_column_usage ORDER BY table_name, constraint_name, ordinal_position",
364
- "source": "information_schema_key_column_usage_test.rs"
365
- },
366
- {
367
- "name": "information_schema_key_column_usage_test-2",
368
- "sql": "SELECT constraint_name, table_name, column_name FROM information_schema.key_column_usage WHERE table_name = 'test_table'",
369
- "source": "information_schema_key_column_usage_test.rs"
370
- },
371
- {
372
- "name": "information_schema_key_column_usage_test-3",
373
- "sql": "SELECT * FROM information_schema.key_column_usage WHERE table_name = 'simple_pk'",
374
- "source": "information_schema_key_column_usage_test.rs"
375
- },
376
- {
377
- "name": "catalog_enum_test-1",
378
- "sql": "CREATE TYPE status AS ENUM ('active', 'inactive', 'pending')",
379
- "source": "catalog_enum_test.rs"
380
- },
381
- {
382
- "name": "catalog_enum_test-2",
383
- "sql": "CREATE TABLE test_enum_table (id INTEGER PRIMARY KEY, current_status status)",
384
- "source": "catalog_enum_test.rs"
385
- },
386
- {
387
- "name": "catalog_enum_test-3",
388
- "sql": "SELECT relname FROM pg_catalog.pg_class WHERE relkind = 'r' AND relname = 'test_enum_table'",
389
- "source": "catalog_enum_test.rs"
390
- },
391
- {
392
- "name": "catalog_enum_test-4",
393
- "sql": "SELECT sql FROM sqlite_master WHERE type='table' AND name='test_enum_table'",
394
- "source": "catalog_enum_test.rs"
395
- },
396
- {
397
- "name": "catalog_enum_test-5",
398
- "sql": "SELECT table_name, column_name, pg_type FROM __pgsqlite_schema WHERE table_name = 'test_enum_table'",
399
- "source": "catalog_enum_test.rs"
400
- },
401
- {
402
- "name": "catalog_enum_test-6",
403
- "sql": "SELECT type_oid, type_name FROM __pgsqlite_enum_types",
404
- "source": "catalog_enum_test.rs"
405
- },
406
- {
407
- "name": "catalog_enum_test-8",
408
- "sql": "SELECT CAST(oid AS TEXT) FROM pg_catalog.pg_class WHERE relname = 'test_enum_table'",
409
- "source": "catalog_enum_test.rs"
410
- },
411
- {
412
- "name": "catalog_enum_test-9",
413
- "sql": "SELECT COUNT(*) FROM pg_catalog.pg_attribute",
414
- "source": "catalog_enum_test.rs"
415
- },
416
- {
417
- "name": "catalog_enum_test-10",
418
- "sql": "SELECT CAST(oid AS TEXT), typname FROM pg_catalog.pg_type WHERE typtype = 'e'",
419
- "source": "catalog_enum_test.rs"
420
- },
421
- {
422
- "name": "catalog_enum_test-11",
423
- "sql": "SELECT typname, typtype FROM pg_catalog.pg_type WHERE oid = $1",
424
- "source": "catalog_enum_test.rs"
425
- },
426
- {
427
- "name": "catalog_enum_test-12",
428
- "sql": "SELECT enumlabel FROM pg_catalog.pg_enum WHERE enumtypid = $1 ORDER BY enumsortorder",
429
- "source": "catalog_enum_test.rs"
430
- },
431
- {
432
- "name": "catalog_enum_test-13",
433
- "sql": "CREATE TYPE color AS ENUM ('red', 'green', 'blue')",
434
- "source": "catalog_enum_test.rs"
435
- },
436
- {
437
- "name": "catalog_enum_test-14",
438
- "sql": "CREATE TYPE size AS ENUM ('small', 'medium', 'large', 'extra_large')",
439
- "source": "catalog_enum_test.rs"
440
- },
441
- {
442
- "name": "catalog_enum_test-15",
443
- "sql": "SELECT CAST(oid AS TEXT), typname FROM pg_catalog.pg_type WHERE typtype = 'e' ORDER BY typname",
444
- "source": "catalog_enum_test.rs"
445
- }
446
- ]
447
- }
@@ -1,32 +0,0 @@
1
- {
2
- "source": "erans/pgsqlite tests/",
3
- "bucket": "create-table",
4
- "count": 5,
5
- "cases": [
6
- {
7
- "name": "create_index_operator_class_test-1",
8
- "sql": "CREATE TABLE test_users (id INTEGER PRIMARY KEY, email VARCHAR(255))",
9
- "source": "create_index_operator_class_test.rs"
10
- },
11
- {
12
- "name": "create_index_operator_class_test-2",
13
- "sql": "INSERT INTO test_users (email) VALUES ('user@example.com'), ('admin@test.org')",
14
- "source": "create_index_operator_class_test.rs"
15
- },
16
- {
17
- "name": "create_index_operator_class_test-3",
18
- "sql": "SELECT * FROM test_users WHERE email LIKE 'user%'",
19
- "source": "create_index_operator_class_test.rs"
20
- },
21
- {
22
- "name": "create_index_operator_class_test-4",
23
- "sql": "CREATE INDEX \"test_users_email_like_idx\" ON \"test_users\" (\"email\" varchar_pattern_ops)",
24
- "source": "create_index_operator_class_test.rs"
25
- },
26
- {
27
- "name": "create_database_integration_test-1",
28
- "sql": "CREATE DATABASE testdb",
29
- "source": "create_database_integration_test.rs"
30
- }
31
- ]
32
- }