@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,512 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "e6ca789c-00aa-42e5-86c5-d6a018ef224e",
5
- "prevId": "dfd089d1-e66b-4d48-96d9-51a051df760b",
6
- "tables": {
7
- "session_dashboard_contributions": {
8
- "name": "session_dashboard_contributions",
9
- "columns": {
10
- "session_id": {
11
- "name": "session_id",
12
- "type": "text",
13
- "primaryKey": false,
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
- "contribution": {
25
- "name": "contribution",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "version": {
32
- "name": "version",
33
- "type": "integer",
34
- "primaryKey": false,
35
- "notNull": true,
36
- "autoincrement": false,
37
- "default": 1
38
- }
39
- },
40
- "indexes": {},
41
- "foreignKeys": {
42
- "session_dashboard_contributions_session_id_sessions_id_fk": {
43
- "name": "session_dashboard_contributions_session_id_sessions_id_fk",
44
- "tableFrom": "session_dashboard_contributions",
45
- "tableTo": "sessions",
46
- "columnsFrom": ["session_id"],
47
- "columnsTo": ["id"],
48
- "onDelete": "cascade",
49
- "onUpdate": "no action"
50
- }
51
- },
52
- "compositePrimaryKeys": {
53
- "session_dashboard_contributions_session_id_tool_pk": {
54
- "columns": ["session_id", "tool"],
55
- "name": "session_dashboard_contributions_session_id_tool_pk"
56
- }
57
- },
58
- "uniqueConstraints": {},
59
- "checkConstraints": {}
60
- },
61
- "session_host_metrics": {
62
- "name": "session_host_metrics",
63
- "columns": {
64
- "session_id": {
65
- "name": "session_id",
66
- "type": "text",
67
- "primaryKey": true,
68
- "notNull": true,
69
- "autoincrement": false
70
- },
71
- "tty_busy_ms": {
72
- "name": "tty_busy_ms",
73
- "type": "integer",
74
- "primaryKey": false,
75
- "notNull": false,
76
- "autoincrement": false
77
- },
78
- "render_ms": {
79
- "name": "render_ms",
80
- "type": "integer",
81
- "primaryKey": false,
82
- "notNull": false,
83
- "autoincrement": false
84
- },
85
- "persist_ms": {
86
- "name": "persist_ms",
87
- "type": "integer",
88
- "primaryKey": false,
89
- "notNull": false,
90
- "autoincrement": false
91
- },
92
- "egress_ms": {
93
- "name": "egress_ms",
94
- "type": "integer",
95
- "primaryKey": false,
96
- "notNull": false,
97
- "autoincrement": false
98
- },
99
- "total_command_ms": {
100
- "name": "total_command_ms",
101
- "type": "integer",
102
- "primaryKey": false,
103
- "notNull": false,
104
- "autoincrement": false
105
- }
106
- },
107
- "indexes": {},
108
- "foreignKeys": {
109
- "session_host_metrics_session_id_sessions_id_fk": {
110
- "name": "session_host_metrics_session_id_sessions_id_fk",
111
- "tableFrom": "session_host_metrics",
112
- "tableTo": "sessions",
113
- "columnsFrom": ["session_id"],
114
- "columnsTo": ["id"],
115
- "onDelete": "cascade",
116
- "onUpdate": "no action"
117
- }
118
- },
119
- "compositePrimaryKeys": {},
120
- "uniqueConstraints": {},
121
- "checkConstraints": {}
122
- },
123
- "session_tool_payload": {
124
- "name": "session_tool_payload",
125
- "columns": {
126
- "session_id": {
127
- "name": "session_id",
128
- "type": "text",
129
- "primaryKey": true,
130
- "notNull": true,
131
- "autoincrement": false
132
- },
133
- "tool": {
134
- "name": "tool",
135
- "type": "text",
136
- "primaryKey": false,
137
- "notNull": true,
138
- "autoincrement": false
139
- },
140
- "payload": {
141
- "name": "payload",
142
- "type": "text",
143
- "primaryKey": false,
144
- "notNull": true,
145
- "autoincrement": false
146
- },
147
- "payload_version": {
148
- "name": "payload_version",
149
- "type": "integer",
150
- "primaryKey": false,
151
- "notNull": true,
152
- "autoincrement": false,
153
- "default": 1
154
- }
155
- },
156
- "indexes": {},
157
- "foreignKeys": {
158
- "session_tool_payload_session_id_sessions_id_fk": {
159
- "name": "session_tool_payload_session_id_sessions_id_fk",
160
- "tableFrom": "session_tool_payload",
161
- "tableTo": "sessions",
162
- "columnsFrom": ["session_id"],
163
- "columnsTo": ["id"],
164
- "onDelete": "cascade",
165
- "onUpdate": "no action"
166
- }
167
- },
168
- "compositePrimaryKeys": {},
169
- "uniqueConstraints": {},
170
- "checkConstraints": {}
171
- },
172
- "sessions": {
173
- "name": "sessions",
174
- "columns": {
175
- "id": {
176
- "name": "id",
177
- "type": "text",
178
- "primaryKey": true,
179
- "notNull": true,
180
- "autoincrement": false
181
- },
182
- "tool": {
183
- "name": "tool",
184
- "type": "text",
185
- "primaryKey": false,
186
- "notNull": true,
187
- "autoincrement": false
188
- },
189
- "timestamp": {
190
- "name": "timestamp",
191
- "type": "integer",
192
- "primaryKey": false,
193
- "notNull": true,
194
- "autoincrement": false
195
- },
196
- "timestamp_iso": {
197
- "name": "timestamp_iso",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": false,
201
- "autoincrement": false
202
- },
203
- "completed_at": {
204
- "name": "completed_at",
205
- "type": "integer",
206
- "primaryKey": false,
207
- "notNull": false,
208
- "autoincrement": false
209
- },
210
- "completed_at_iso": {
211
- "name": "completed_at_iso",
212
- "type": "text",
213
- "primaryKey": false,
214
- "notNull": false,
215
- "autoincrement": false
216
- },
217
- "cwd": {
218
- "name": "cwd",
219
- "type": "text",
220
- "primaryKey": false,
221
- "notNull": true,
222
- "autoincrement": false
223
- },
224
- "recipe": {
225
- "name": "recipe",
226
- "type": "text",
227
- "primaryKey": false,
228
- "notNull": false,
229
- "autoincrement": false
230
- },
231
- "score": {
232
- "name": "score",
233
- "type": "integer",
234
- "primaryKey": false,
235
- "notNull": true,
236
- "autoincrement": false
237
- },
238
- "passed": {
239
- "name": "passed",
240
- "type": "integer",
241
- "primaryKey": false,
242
- "notNull": true,
243
- "autoincrement": false
244
- },
245
- "duration_ms": {
246
- "name": "duration_ms",
247
- "type": "integer",
248
- "primaryKey": false,
249
- "notNull": true,
250
- "autoincrement": false
251
- }
252
- },
253
- "indexes": {
254
- "sessions_tool_timestamp_idx": {
255
- "name": "sessions_tool_timestamp_idx",
256
- "columns": ["tool", "\"timestamp\" DESC"],
257
- "isUnique": false
258
- }
259
- },
260
- "foreignKeys": {},
261
- "compositePrimaryKeys": {},
262
- "uniqueConstraints": {},
263
- "checkConstraints": {}
264
- },
265
- "graph_catalog": {
266
- "name": "graph_catalog",
267
- "columns": {
268
- "id": {
269
- "name": "id",
270
- "type": "integer",
271
- "primaryKey": true,
272
- "notNull": true,
273
- "autoincrement": false
274
- },
275
- "language": {
276
- "name": "language",
277
- "type": "text",
278
- "primaryKey": false,
279
- "notNull": true,
280
- "autoincrement": false
281
- },
282
- "cache_key": {
283
- "name": "cache_key",
284
- "type": "text",
285
- "primaryKey": false,
286
- "notNull": true,
287
- "autoincrement": false
288
- },
289
- "files_fingerprint": {
290
- "name": "files_fingerprint",
291
- "type": "text",
292
- "primaryKey": false,
293
- "notNull": true,
294
- "autoincrement": false
295
- },
296
- "built_at": {
297
- "name": "built_at",
298
- "type": "text",
299
- "primaryKey": false,
300
- "notNull": true,
301
- "autoincrement": false
302
- },
303
- "payload": {
304
- "name": "payload",
305
- "type": "text",
306
- "primaryKey": false,
307
- "notNull": true,
308
- "autoincrement": false
309
- }
310
- },
311
- "indexes": {},
312
- "foreignKeys": {},
313
- "compositePrimaryKeys": {},
314
- "uniqueConstraints": {},
315
- "checkConstraints": {}
316
- },
317
- "graph_shard_fragment": {
318
- "name": "graph_shard_fragment",
319
- "columns": {
320
- "shard_id": {
321
- "name": "shard_id",
322
- "type": "text",
323
- "primaryKey": true,
324
- "notNull": true,
325
- "autoincrement": false
326
- },
327
- "language": {
328
- "name": "language",
329
- "type": "text",
330
- "primaryKey": false,
331
- "notNull": true,
332
- "autoincrement": false
333
- },
334
- "cache_key": {
335
- "name": "cache_key",
336
- "type": "text",
337
- "primaryKey": false,
338
- "notNull": true,
339
- "autoincrement": false
340
- },
341
- "shard_fingerprint": {
342
- "name": "shard_fingerprint",
343
- "type": "text",
344
- "primaryKey": false,
345
- "notNull": true,
346
- "autoincrement": false
347
- },
348
- "payload": {
349
- "name": "payload",
350
- "type": "text",
351
- "primaryKey": false,
352
- "notNull": true,
353
- "autoincrement": false
354
- }
355
- },
356
- "indexes": {},
357
- "foreignKeys": {},
358
- "compositePrimaryKeys": {},
359
- "uniqueConstraints": {},
360
- "checkConstraints": {}
361
- },
362
- "tool_baseline_entries": {
363
- "name": "tool_baseline_entries",
364
- "columns": {
365
- "tool": {
366
- "name": "tool",
367
- "type": "text",
368
- "primaryKey": false,
369
- "notNull": true,
370
- "autoincrement": false
371
- },
372
- "stable_id": {
373
- "name": "stable_id",
374
- "type": "text",
375
- "primaryKey": false,
376
- "notNull": false,
377
- "autoincrement": false
378
- },
379
- "fingerprint": {
380
- "name": "fingerprint",
381
- "type": "text",
382
- "primaryKey": false,
383
- "notNull": true,
384
- "autoincrement": false
385
- },
386
- "payload": {
387
- "name": "payload",
388
- "type": "text",
389
- "primaryKey": false,
390
- "notNull": false,
391
- "autoincrement": false
392
- },
393
- "captured_at": {
394
- "name": "captured_at",
395
- "type": "integer",
396
- "primaryKey": false,
397
- "notNull": true,
398
- "autoincrement": false
399
- }
400
- },
401
- "indexes": {},
402
- "foreignKeys": {},
403
- "compositePrimaryKeys": {
404
- "tool_baseline_entries_tool_fingerprint_pk": {
405
- "columns": ["tool", "fingerprint"],
406
- "name": "tool_baseline_entries_tool_fingerprint_pk"
407
- }
408
- },
409
- "uniqueConstraints": {},
410
- "checkConstraints": {}
411
- },
412
- "tool_baseline_meta": {
413
- "name": "tool_baseline_meta",
414
- "columns": {
415
- "tool": {
416
- "name": "tool",
417
- "type": "text",
418
- "primaryKey": true,
419
- "notNull": true,
420
- "autoincrement": false
421
- },
422
- "stable_id": {
423
- "name": "stable_id",
424
- "type": "text",
425
- "primaryKey": false,
426
- "notNull": false,
427
- "autoincrement": false
428
- },
429
- "captured_at": {
430
- "name": "captured_at",
431
- "type": "integer",
432
- "primaryKey": false,
433
- "notNull": true,
434
- "autoincrement": false
435
- }
436
- },
437
- "indexes": {},
438
- "foreignKeys": {},
439
- "compositePrimaryKeys": {},
440
- "uniqueConstraints": {},
441
- "checkConstraints": {}
442
- },
443
- "tool_state": {
444
- "name": "tool_state",
445
- "columns": {
446
- "tool": {
447
- "name": "tool",
448
- "type": "text",
449
- "primaryKey": false,
450
- "notNull": true,
451
- "autoincrement": false
452
- },
453
- "stable_id": {
454
- "name": "stable_id",
455
- "type": "text",
456
- "primaryKey": false,
457
- "notNull": false,
458
- "autoincrement": false
459
- },
460
- "key": {
461
- "name": "key",
462
- "type": "text",
463
- "primaryKey": false,
464
- "notNull": true,
465
- "autoincrement": false
466
- },
467
- "payload": {
468
- "name": "payload",
469
- "type": "text",
470
- "primaryKey": false,
471
- "notNull": false,
472
- "autoincrement": false
473
- },
474
- "updated_at": {
475
- "name": "updated_at",
476
- "type": "integer",
477
- "primaryKey": false,
478
- "notNull": true,
479
- "autoincrement": false
480
- }
481
- },
482
- "indexes": {},
483
- "foreignKeys": {},
484
- "compositePrimaryKeys": {
485
- "tool_state_tool_key_pk": {
486
- "columns": ["tool", "key"],
487
- "name": "tool_state_tool_key_pk"
488
- }
489
- },
490
- "uniqueConstraints": {},
491
- "checkConstraints": {}
492
- }
493
- },
494
- "views": {},
495
- "enums": {},
496
- "_meta": {
497
- "schemas": {},
498
- "tables": {},
499
- "columns": {}
500
- },
501
- "internal": {
502
- "indexes": {
503
- "sessions_tool_timestamp_idx": {
504
- "columns": {
505
- "\"timestamp\" DESC": {
506
- "isExpression": true
507
- }
508
- }
509
- }
510
- }
511
- }
512
- }