@opensip-cli/datastore 0.1.0 → 0.1.2

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 (32) hide show
  1. package/README.md +3 -3
  2. package/migrations/0000_tense_karma.sql +73 -0
  3. package/migrations/meta/0000_snapshot.json +289 -100
  4. package/migrations/meta/_journal.json +2 -93
  5. package/package.json +2 -2
  6. package/migrations/0000_sticky_white_tiger.sql +0 -39
  7. package/migrations/0001_easy_harry_osborn.sql +0 -18
  8. package/migrations/0002_plain_amazoness.sql +0 -5
  9. package/migrations/0003_mysterious_khan.sql +0 -6
  10. package/migrations/0004_narrow_bloodscream.sql +0 -3
  11. package/migrations/0005_lying_luke_cage.sql +0 -7
  12. package/migrations/0006_mean_photon.sql +0 -12
  13. package/migrations/0007_parallel_chamber.sql +0 -3
  14. package/migrations/0008_flaky_victor_mancha.sql +0 -7
  15. package/migrations/0009_stable_tool_identity.sql +0 -9
  16. package/migrations/0010_add_timestamp_iso_and_payload_version.sql +0 -11
  17. package/migrations/0011_payload_version_safety_and_notes.sql +0 -21
  18. package/migrations/0012_overrated_talon.sql +0 -21
  19. package/migrations/0013_lovely_zarda.sql +0 -1
  20. package/migrations/meta/0001_snapshot.json +0 -369
  21. package/migrations/meta/0002_snapshot.json +0 -400
  22. package/migrations/meta/0003_snapshot.json +0 -441
  23. package/migrations/meta/0004_snapshot.json +0 -270
  24. package/migrations/meta/0005_snapshot.json +0 -315
  25. package/migrations/meta/0006_snapshot.json +0 -382
  26. package/migrations/meta/0007_snapshot.json +0 -303
  27. package/migrations/meta/0008_snapshot.json +0 -346
  28. package/migrations/meta/0009_snapshot.json +0 -367
  29. package/migrations/meta/0010_snapshot.json +0 -382
  30. package/migrations/meta/0011_snapshot.json +0 -382
  31. package/migrations/meta/0012_snapshot.json +0 -512
  32. package/migrations/meta/0013_snapshot.json +0 -458
@@ -1,303 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "6168836a-fdf8-4eee-a6b8-ab36906171aa",
5
- "prevId": "025f738a-e375-47b3-bea3-898a91a934d5",
6
- "tables": {
7
- "session_tool_payload": {
8
- "name": "session_tool_payload",
9
- "columns": {
10
- "session_id": {
11
- "name": "session_id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "tool": {
18
- "name": "tool",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "payload": {
25
- "name": "payload",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- }
31
- },
32
- "indexes": {},
33
- "foreignKeys": {
34
- "session_tool_payload_session_id_sessions_id_fk": {
35
- "name": "session_tool_payload_session_id_sessions_id_fk",
36
- "tableFrom": "session_tool_payload",
37
- "tableTo": "sessions",
38
- "columnsFrom": ["session_id"],
39
- "columnsTo": ["id"],
40
- "onDelete": "cascade",
41
- "onUpdate": "no action"
42
- }
43
- },
44
- "compositePrimaryKeys": {},
45
- "uniqueConstraints": {},
46
- "checkConstraints": {}
47
- },
48
- "sessions": {
49
- "name": "sessions",
50
- "columns": {
51
- "id": {
52
- "name": "id",
53
- "type": "text",
54
- "primaryKey": true,
55
- "notNull": true,
56
- "autoincrement": false
57
- },
58
- "tool": {
59
- "name": "tool",
60
- "type": "text",
61
- "primaryKey": false,
62
- "notNull": true,
63
- "autoincrement": false
64
- },
65
- "timestamp": {
66
- "name": "timestamp",
67
- "type": "integer",
68
- "primaryKey": false,
69
- "notNull": true,
70
- "autoincrement": false
71
- },
72
- "cwd": {
73
- "name": "cwd",
74
- "type": "text",
75
- "primaryKey": false,
76
- "notNull": true,
77
- "autoincrement": false
78
- },
79
- "recipe": {
80
- "name": "recipe",
81
- "type": "text",
82
- "primaryKey": false,
83
- "notNull": false,
84
- "autoincrement": false
85
- },
86
- "score": {
87
- "name": "score",
88
- "type": "integer",
89
- "primaryKey": false,
90
- "notNull": true,
91
- "autoincrement": false
92
- },
93
- "passed": {
94
- "name": "passed",
95
- "type": "integer",
96
- "primaryKey": false,
97
- "notNull": true,
98
- "autoincrement": false
99
- },
100
- "duration_ms": {
101
- "name": "duration_ms",
102
- "type": "integer",
103
- "primaryKey": false,
104
- "notNull": true,
105
- "autoincrement": false
106
- }
107
- },
108
- "indexes": {
109
- "sessions_tool_timestamp_idx": {
110
- "name": "sessions_tool_timestamp_idx",
111
- "columns": ["tool", "\"timestamp\" DESC"],
112
- "isUnique": false
113
- }
114
- },
115
- "foreignKeys": {},
116
- "compositePrimaryKeys": {},
117
- "uniqueConstraints": {},
118
- "checkConstraints": {}
119
- },
120
- "graph_catalog": {
121
- "name": "graph_catalog",
122
- "columns": {
123
- "id": {
124
- "name": "id",
125
- "type": "integer",
126
- "primaryKey": true,
127
- "notNull": true,
128
- "autoincrement": false
129
- },
130
- "language": {
131
- "name": "language",
132
- "type": "text",
133
- "primaryKey": false,
134
- "notNull": true,
135
- "autoincrement": false
136
- },
137
- "cache_key": {
138
- "name": "cache_key",
139
- "type": "text",
140
- "primaryKey": false,
141
- "notNull": true,
142
- "autoincrement": false
143
- },
144
- "files_fingerprint": {
145
- "name": "files_fingerprint",
146
- "type": "text",
147
- "primaryKey": false,
148
- "notNull": true,
149
- "autoincrement": false
150
- },
151
- "built_at": {
152
- "name": "built_at",
153
- "type": "text",
154
- "primaryKey": false,
155
- "notNull": true,
156
- "autoincrement": false
157
- },
158
- "payload": {
159
- "name": "payload",
160
- "type": "text",
161
- "primaryKey": false,
162
- "notNull": true,
163
- "autoincrement": false
164
- }
165
- },
166
- "indexes": {},
167
- "foreignKeys": {},
168
- "compositePrimaryKeys": {},
169
- "uniqueConstraints": {},
170
- "checkConstraints": {}
171
- },
172
- "graph_shard_fragment": {
173
- "name": "graph_shard_fragment",
174
- "columns": {
175
- "shard_id": {
176
- "name": "shard_id",
177
- "type": "text",
178
- "primaryKey": true,
179
- "notNull": true,
180
- "autoincrement": false
181
- },
182
- "language": {
183
- "name": "language",
184
- "type": "text",
185
- "primaryKey": false,
186
- "notNull": true,
187
- "autoincrement": false
188
- },
189
- "cache_key": {
190
- "name": "cache_key",
191
- "type": "text",
192
- "primaryKey": false,
193
- "notNull": true,
194
- "autoincrement": false
195
- },
196
- "shard_fingerprint": {
197
- "name": "shard_fingerprint",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": true,
201
- "autoincrement": false
202
- },
203
- "payload": {
204
- "name": "payload",
205
- "type": "text",
206
- "primaryKey": false,
207
- "notNull": true,
208
- "autoincrement": false
209
- }
210
- },
211
- "indexes": {},
212
- "foreignKeys": {},
213
- "compositePrimaryKeys": {},
214
- "uniqueConstraints": {},
215
- "checkConstraints": {}
216
- },
217
- "tool_baseline_entries": {
218
- "name": "tool_baseline_entries",
219
- "columns": {
220
- "tool": {
221
- "name": "tool",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": true,
225
- "autoincrement": false
226
- },
227
- "fingerprint": {
228
- "name": "fingerprint",
229
- "type": "text",
230
- "primaryKey": false,
231
- "notNull": true,
232
- "autoincrement": false
233
- },
234
- "payload": {
235
- "name": "payload",
236
- "type": "text",
237
- "primaryKey": false,
238
- "notNull": false,
239
- "autoincrement": false
240
- },
241
- "captured_at": {
242
- "name": "captured_at",
243
- "type": "integer",
244
- "primaryKey": false,
245
- "notNull": true,
246
- "autoincrement": false
247
- }
248
- },
249
- "indexes": {},
250
- "foreignKeys": {},
251
- "compositePrimaryKeys": {
252
- "tool_baseline_entries_tool_fingerprint_pk": {
253
- "columns": ["tool", "fingerprint"],
254
- "name": "tool_baseline_entries_tool_fingerprint_pk"
255
- }
256
- },
257
- "uniqueConstraints": {},
258
- "checkConstraints": {}
259
- },
260
- "tool_baseline_meta": {
261
- "name": "tool_baseline_meta",
262
- "columns": {
263
- "tool": {
264
- "name": "tool",
265
- "type": "text",
266
- "primaryKey": true,
267
- "notNull": true,
268
- "autoincrement": false
269
- },
270
- "captured_at": {
271
- "name": "captured_at",
272
- "type": "integer",
273
- "primaryKey": false,
274
- "notNull": true,
275
- "autoincrement": false
276
- }
277
- },
278
- "indexes": {},
279
- "foreignKeys": {},
280
- "compositePrimaryKeys": {},
281
- "uniqueConstraints": {},
282
- "checkConstraints": {}
283
- }
284
- },
285
- "views": {},
286
- "enums": {},
287
- "_meta": {
288
- "schemas": {},
289
- "tables": {},
290
- "columns": {}
291
- },
292
- "internal": {
293
- "indexes": {
294
- "sessions_tool_timestamp_idx": {
295
- "columns": {
296
- "\"timestamp\" DESC": {
297
- "isExpression": true
298
- }
299
- }
300
- }
301
- }
302
- }
303
- }
@@ -1,346 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "819d5642-5cdc-4db2-81c4-15b673bee35f",
5
- "prevId": "6168836a-fdf8-4eee-a6b8-ab36906171aa",
6
- "tables": {
7
- "session_tool_payload": {
8
- "name": "session_tool_payload",
9
- "columns": {
10
- "session_id": {
11
- "name": "session_id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "tool": {
18
- "name": "tool",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "payload": {
25
- "name": "payload",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- }
31
- },
32
- "indexes": {},
33
- "foreignKeys": {
34
- "session_tool_payload_session_id_sessions_id_fk": {
35
- "name": "session_tool_payload_session_id_sessions_id_fk",
36
- "tableFrom": "session_tool_payload",
37
- "tableTo": "sessions",
38
- "columnsFrom": ["session_id"],
39
- "columnsTo": ["id"],
40
- "onDelete": "cascade",
41
- "onUpdate": "no action"
42
- }
43
- },
44
- "compositePrimaryKeys": {},
45
- "uniqueConstraints": {},
46
- "checkConstraints": {}
47
- },
48
- "sessions": {
49
- "name": "sessions",
50
- "columns": {
51
- "id": {
52
- "name": "id",
53
- "type": "text",
54
- "primaryKey": true,
55
- "notNull": true,
56
- "autoincrement": false
57
- },
58
- "tool": {
59
- "name": "tool",
60
- "type": "text",
61
- "primaryKey": false,
62
- "notNull": true,
63
- "autoincrement": false
64
- },
65
- "timestamp": {
66
- "name": "timestamp",
67
- "type": "integer",
68
- "primaryKey": false,
69
- "notNull": true,
70
- "autoincrement": false
71
- },
72
- "cwd": {
73
- "name": "cwd",
74
- "type": "text",
75
- "primaryKey": false,
76
- "notNull": true,
77
- "autoincrement": false
78
- },
79
- "recipe": {
80
- "name": "recipe",
81
- "type": "text",
82
- "primaryKey": false,
83
- "notNull": false,
84
- "autoincrement": false
85
- },
86
- "score": {
87
- "name": "score",
88
- "type": "integer",
89
- "primaryKey": false,
90
- "notNull": true,
91
- "autoincrement": false
92
- },
93
- "passed": {
94
- "name": "passed",
95
- "type": "integer",
96
- "primaryKey": false,
97
- "notNull": true,
98
- "autoincrement": false
99
- },
100
- "duration_ms": {
101
- "name": "duration_ms",
102
- "type": "integer",
103
- "primaryKey": false,
104
- "notNull": true,
105
- "autoincrement": false
106
- }
107
- },
108
- "indexes": {
109
- "sessions_tool_timestamp_idx": {
110
- "name": "sessions_tool_timestamp_idx",
111
- "columns": ["tool", "\"timestamp\" DESC"],
112
- "isUnique": false
113
- }
114
- },
115
- "foreignKeys": {},
116
- "compositePrimaryKeys": {},
117
- "uniqueConstraints": {},
118
- "checkConstraints": {}
119
- },
120
- "graph_catalog": {
121
- "name": "graph_catalog",
122
- "columns": {
123
- "id": {
124
- "name": "id",
125
- "type": "integer",
126
- "primaryKey": true,
127
- "notNull": true,
128
- "autoincrement": false
129
- },
130
- "language": {
131
- "name": "language",
132
- "type": "text",
133
- "primaryKey": false,
134
- "notNull": true,
135
- "autoincrement": false
136
- },
137
- "cache_key": {
138
- "name": "cache_key",
139
- "type": "text",
140
- "primaryKey": false,
141
- "notNull": true,
142
- "autoincrement": false
143
- },
144
- "files_fingerprint": {
145
- "name": "files_fingerprint",
146
- "type": "text",
147
- "primaryKey": false,
148
- "notNull": true,
149
- "autoincrement": false
150
- },
151
- "built_at": {
152
- "name": "built_at",
153
- "type": "text",
154
- "primaryKey": false,
155
- "notNull": true,
156
- "autoincrement": false
157
- },
158
- "payload": {
159
- "name": "payload",
160
- "type": "text",
161
- "primaryKey": false,
162
- "notNull": true,
163
- "autoincrement": false
164
- }
165
- },
166
- "indexes": {},
167
- "foreignKeys": {},
168
- "compositePrimaryKeys": {},
169
- "uniqueConstraints": {},
170
- "checkConstraints": {}
171
- },
172
- "graph_shard_fragment": {
173
- "name": "graph_shard_fragment",
174
- "columns": {
175
- "shard_id": {
176
- "name": "shard_id",
177
- "type": "text",
178
- "primaryKey": true,
179
- "notNull": true,
180
- "autoincrement": false
181
- },
182
- "language": {
183
- "name": "language",
184
- "type": "text",
185
- "primaryKey": false,
186
- "notNull": true,
187
- "autoincrement": false
188
- },
189
- "cache_key": {
190
- "name": "cache_key",
191
- "type": "text",
192
- "primaryKey": false,
193
- "notNull": true,
194
- "autoincrement": false
195
- },
196
- "shard_fingerprint": {
197
- "name": "shard_fingerprint",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": true,
201
- "autoincrement": false
202
- },
203
- "payload": {
204
- "name": "payload",
205
- "type": "text",
206
- "primaryKey": false,
207
- "notNull": true,
208
- "autoincrement": false
209
- }
210
- },
211
- "indexes": {},
212
- "foreignKeys": {},
213
- "compositePrimaryKeys": {},
214
- "uniqueConstraints": {},
215
- "checkConstraints": {}
216
- },
217
- "tool_baseline_entries": {
218
- "name": "tool_baseline_entries",
219
- "columns": {
220
- "tool": {
221
- "name": "tool",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": true,
225
- "autoincrement": false
226
- },
227
- "fingerprint": {
228
- "name": "fingerprint",
229
- "type": "text",
230
- "primaryKey": false,
231
- "notNull": true,
232
- "autoincrement": false
233
- },
234
- "payload": {
235
- "name": "payload",
236
- "type": "text",
237
- "primaryKey": false,
238
- "notNull": false,
239
- "autoincrement": false
240
- },
241
- "captured_at": {
242
- "name": "captured_at",
243
- "type": "integer",
244
- "primaryKey": false,
245
- "notNull": true,
246
- "autoincrement": false
247
- }
248
- },
249
- "indexes": {},
250
- "foreignKeys": {},
251
- "compositePrimaryKeys": {
252
- "tool_baseline_entries_tool_fingerprint_pk": {
253
- "columns": ["tool", "fingerprint"],
254
- "name": "tool_baseline_entries_tool_fingerprint_pk"
255
- }
256
- },
257
- "uniqueConstraints": {},
258
- "checkConstraints": {}
259
- },
260
- "tool_baseline_meta": {
261
- "name": "tool_baseline_meta",
262
- "columns": {
263
- "tool": {
264
- "name": "tool",
265
- "type": "text",
266
- "primaryKey": true,
267
- "notNull": true,
268
- "autoincrement": false
269
- },
270
- "captured_at": {
271
- "name": "captured_at",
272
- "type": "integer",
273
- "primaryKey": false,
274
- "notNull": true,
275
- "autoincrement": false
276
- }
277
- },
278
- "indexes": {},
279
- "foreignKeys": {},
280
- "compositePrimaryKeys": {},
281
- "uniqueConstraints": {},
282
- "checkConstraints": {}
283
- },
284
- "tool_state": {
285
- "name": "tool_state",
286
- "columns": {
287
- "tool": {
288
- "name": "tool",
289
- "type": "text",
290
- "primaryKey": false,
291
- "notNull": true,
292
- "autoincrement": false
293
- },
294
- "key": {
295
- "name": "key",
296
- "type": "text",
297
- "primaryKey": false,
298
- "notNull": true,
299
- "autoincrement": false
300
- },
301
- "payload": {
302
- "name": "payload",
303
- "type": "text",
304
- "primaryKey": false,
305
- "notNull": false,
306
- "autoincrement": false
307
- },
308
- "updated_at": {
309
- "name": "updated_at",
310
- "type": "integer",
311
- "primaryKey": false,
312
- "notNull": true,
313
- "autoincrement": false
314
- }
315
- },
316
- "indexes": {},
317
- "foreignKeys": {},
318
- "compositePrimaryKeys": {
319
- "tool_state_tool_key_pk": {
320
- "columns": ["tool", "key"],
321
- "name": "tool_state_tool_key_pk"
322
- }
323
- },
324
- "uniqueConstraints": {},
325
- "checkConstraints": {}
326
- }
327
- },
328
- "views": {},
329
- "enums": {},
330
- "_meta": {
331
- "schemas": {},
332
- "tables": {},
333
- "columns": {}
334
- },
335
- "internal": {
336
- "indexes": {
337
- "sessions_tool_timestamp_idx": {
338
- "columns": {
339
- "\"timestamp\" DESC": {
340
- "isExpression": true
341
- }
342
- }
343
- }
344
- }
345
- }
346
- }