@livestore/livestore 0.4.0 → 0.5.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/QueryCache.d.ts.map +1 -1
- package/dist/SqliteDbWrapper.d.ts +1 -1
- package/dist/SqliteDbWrapper.d.ts.map +1 -1
- package/dist/SqliteDbWrapper.js +9 -7
- package/dist/SqliteDbWrapper.js.map +1 -1
- package/dist/SqliteDbWrapper.test.js +22 -5
- package/dist/SqliteDbWrapper.test.js.map +1 -1
- package/dist/effect/LiveStore.d.ts +68 -16
- package/dist/effect/LiveStore.d.ts.map +1 -1
- package/dist/effect/LiveStore.js +22 -20
- package/dist/effect/LiveStore.js.map +1 -1
- package/dist/effect/LiveStore.test.js +7 -8
- package/dist/effect/LiveStore.test.js.map +1 -1
- package/dist/effect/mod.js +2 -2
- package/dist/internal/mod.js +2 -2
- package/dist/live-queries/base-class.d.ts +20 -3
- package/dist/live-queries/base-class.d.ts.map +1 -1
- package/dist/live-queries/base-class.js +30 -4
- package/dist/live-queries/base-class.js.map +1 -1
- package/dist/live-queries/client-document-get-query.d.ts.map +1 -1
- package/dist/live-queries/client-document-get-query.js +1 -1
- package/dist/live-queries/computed.d.ts +1 -1
- package/dist/live-queries/computed.d.ts.map +1 -1
- package/dist/live-queries/computed.js +5 -5
- package/dist/live-queries/computed.js.map +1 -1
- package/dist/live-queries/db-query.d.ts +3 -3
- package/dist/live-queries/db-query.d.ts.map +1 -1
- package/dist/live-queries/db-query.js +30 -21
- package/dist/live-queries/db-query.js.map +1 -1
- package/dist/live-queries/db-query.test.js +15 -15
- package/dist/live-queries/db-query.test.js.map +1 -1
- package/dist/live-queries/mod.js +4 -4
- package/dist/live-queries/signal.d.ts +1 -1
- package/dist/live-queries/signal.d.ts.map +1 -1
- package/dist/live-queries/signal.js +2 -2
- package/dist/live-queries/signal.js.map +1 -1
- package/dist/live-queries/signal.test.js +5 -5
- package/dist/live-queries/signal.test.js.map +1 -1
- package/dist/mod.js +8 -8
- package/dist/reactive.d.ts +1 -1
- package/dist/reactive.d.ts.map +1 -1
- package/dist/reactive.js +20 -1
- package/dist/reactive.js.map +1 -1
- package/dist/reactive.test.js +1 -1
- package/dist/store/StoreRegistry.d.ts +12 -12
- package/dist/store/StoreRegistry.d.ts.map +1 -1
- package/dist/store/StoreRegistry.js +25 -25
- package/dist/store/StoreRegistry.js.map +1 -1
- package/dist/store/StoreRegistry.test.js +65 -62
- package/dist/store/StoreRegistry.test.js.map +1 -1
- package/dist/store/create-store.d.ts +27 -16
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/create-store.js +55 -27
- package/dist/store/create-store.js.map +1 -1
- package/dist/store/create-store.test.d.ts +2 -0
- package/dist/store/create-store.test.d.ts.map +1 -0
- package/dist/store/create-store.test.js +28 -0
- package/dist/store/create-store.test.js.map +1 -0
- package/dist/store/devtools.d.ts +1 -2
- package/dist/store/devtools.d.ts.map +1 -1
- package/dist/store/devtools.js +6 -5
- package/dist/store/devtools.js.map +1 -1
- package/dist/store/store-commit.test.d.ts +2 -0
- package/dist/store/store-commit.test.d.ts.map +1 -0
- package/dist/store/store-commit.test.js +85 -0
- package/dist/store/store-commit.test.js.map +1 -0
- package/dist/store/store-eventstream.test.js +6 -6
- package/dist/store/store-eventstream.test.js.map +1 -1
- package/dist/store/store-types.d.ts +10 -28
- package/dist/store/store-types.d.ts.map +1 -1
- package/dist/store/store-types.js +2 -38
- package/dist/store/store-types.js.map +1 -1
- package/dist/store/store-types.test.js +4 -4
- package/dist/store/store.d.ts +15 -16
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +149 -91
- package/dist/store/store.js.map +1 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/dev.d.ts.map +1 -1
- package/dist/utils/dev.js +1 -1
- package/dist/utils/dev.js.map +1 -1
- package/dist/utils/function-string.d.ts +3 -3
- package/dist/utils/function-string.d.ts.map +1 -1
- package/dist/utils/stack-info.d.ts.map +1 -1
- package/dist/utils/stack-info.js +2 -1
- package/dist/utils/stack-info.js.map +1 -1
- package/dist/utils/stack-info.test.js +1 -1
- package/dist/utils/tests/fixture.d.ts +26 -34
- package/dist/utils/tests/fixture.d.ts.map +1 -1
- package/dist/utils/tests/fixture.js.map +1 -1
- package/dist/utils/tests/mod.js +3 -3
- package/dist/utils/tests/otel.d.ts +6 -6
- package/dist/utils/tests/otel.d.ts.map +1 -1
- package/package.json +40 -50
- package/src/SqliteDbWrapper.test.ts +25 -3
- package/src/SqliteDbWrapper.ts +13 -10
- package/src/effect/LiveStore.test.ts +16 -16
- package/src/effect/LiveStore.ts +83 -51
- package/src/live-queries/__snapshots__/db-query.test.ts.snap +303 -97
- package/src/live-queries/base-class.ts +39 -7
- package/src/live-queries/computed.ts +5 -5
- package/src/live-queries/db-query.test.ts +9 -9
- package/src/live-queries/db-query.ts +42 -30
- package/src/live-queries/signal.test.ts +2 -2
- package/src/live-queries/signal.ts +3 -3
- package/src/reactive.ts +45 -35
- package/src/store/StoreRegistry.test.ts +62 -59
- package/src/store/StoreRegistry.ts +49 -38
- package/src/store/create-store.test.ts +35 -0
- package/src/store/create-store.ts +110 -55
- package/src/store/devtools.ts +283 -283
- package/src/store/store-commit.test.ts +137 -0
- package/src/store/store-eventstream.test.ts +16 -7
- package/src/store/store-types.test.ts +1 -1
- package/src/store/store-types.ts +10 -56
- package/src/store/store.ts +184 -110
- package/src/utils/dev.ts +1 -1
- package/src/utils/stack-info.ts +4 -1
|
@@ -27,18 +27,17 @@ exports[`otel > QueryBuilder subscription - async iterator 1`] = `
|
|
|
27
27
|
"_name": "client-session-sync-processor:boot",
|
|
28
28
|
"children": [
|
|
29
29
|
{
|
|
30
|
-
"_name": "
|
|
30
|
+
"_name": "client-session-sync-processor:pull",
|
|
31
31
|
"attributes": {
|
|
32
|
-
"
|
|
33
|
-
"batchSize": 1,
|
|
32
|
+
"effect.fiber.interrupted": true,
|
|
34
33
|
},
|
|
35
34
|
},
|
|
36
35
|
{
|
|
37
|
-
"_name": "
|
|
36
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
38
37
|
"attributes": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
38
|
+
"batch": "undefined",
|
|
39
|
+
"batchSize": 1,
|
|
40
|
+
"effect.fiber.interrupted": true,
|
|
42
41
|
},
|
|
43
42
|
},
|
|
44
43
|
],
|
|
@@ -48,6 +47,52 @@ exports[`otel > QueryBuilder subscription - async iterator 1`] = `
|
|
|
48
47
|
},
|
|
49
48
|
{
|
|
50
49
|
"_name": "LiveStore:queries",
|
|
50
|
+
"children": [
|
|
51
|
+
{
|
|
52
|
+
"_name": "LiveStore.subscribe",
|
|
53
|
+
"attributes": {
|
|
54
|
+
"queryLabel": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
55
|
+
},
|
|
56
|
+
"children": [
|
|
57
|
+
{
|
|
58
|
+
"_name": "db:SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ",
|
|
59
|
+
"attributes": {
|
|
60
|
+
"livestore.debugRefreshReason": "subscribe-initial-run:undefined",
|
|
61
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
62
|
+
"sql.rowsCount": 0,
|
|
63
|
+
},
|
|
64
|
+
"children": [
|
|
65
|
+
{
|
|
66
|
+
"_name": "sql-in-memory-select",
|
|
67
|
+
"attributes": {
|
|
68
|
+
"sql.cached": false,
|
|
69
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
70
|
+
"sql.rowsCount": 0,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"_name": "db:SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ",
|
|
77
|
+
"attributes": {
|
|
78
|
+
"livestore.debugRefreshReason": "commit",
|
|
79
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
80
|
+
"sql.rowsCount": 1,
|
|
81
|
+
},
|
|
82
|
+
"children": [
|
|
83
|
+
{
|
|
84
|
+
"_name": "sql-in-memory-select",
|
|
85
|
+
"attributes": {
|
|
86
|
+
"sql.cached": false,
|
|
87
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
88
|
+
"sql.rowsCount": 1,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
51
96
|
},
|
|
52
97
|
],
|
|
53
98
|
}
|
|
@@ -58,9 +103,9 @@ exports[`otel > QueryBuilder subscription - async iterator 2`] = `
|
|
|
58
103
|
{
|
|
59
104
|
"_name": "LiveStore:commit",
|
|
60
105
|
"attributes": {
|
|
61
|
-
"livestore.eventTags":
|
|
62
|
-
|
|
63
|
-
]
|
|
106
|
+
"livestore.eventTags": [
|
|
107
|
+
"todo.created",
|
|
108
|
+
],
|
|
64
109
|
"livestore.eventsCount": 1,
|
|
65
110
|
},
|
|
66
111
|
"children": [
|
|
@@ -79,6 +124,19 @@ exports[`otel > QueryBuilder subscription - async iterator 2`] = `
|
|
|
79
124
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
80
125
|
},
|
|
81
126
|
},
|
|
127
|
+
{
|
|
128
|
+
"_name": "@livestore/common:execSql",
|
|
129
|
+
"attributes": {
|
|
130
|
+
"bindValueKeys": [
|
|
131
|
+
"$id",
|
|
132
|
+
"$seqNumGlobal",
|
|
133
|
+
"$seqNumClient",
|
|
134
|
+
"$seqNumRebaseGeneration",
|
|
135
|
+
],
|
|
136
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
137
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
82
140
|
],
|
|
83
141
|
},
|
|
84
142
|
],
|
|
@@ -125,18 +183,17 @@ exports[`otel > QueryBuilder subscription - async iterator with skipInitialRun 1
|
|
|
125
183
|
"_name": "client-session-sync-processor:boot",
|
|
126
184
|
"children": [
|
|
127
185
|
{
|
|
128
|
-
"_name": "
|
|
186
|
+
"_name": "client-session-sync-processor:pull",
|
|
129
187
|
"attributes": {
|
|
130
|
-
"
|
|
131
|
-
"batchSize": 1,
|
|
188
|
+
"effect.fiber.interrupted": true,
|
|
132
189
|
},
|
|
133
190
|
},
|
|
134
191
|
{
|
|
135
|
-
"_name": "
|
|
192
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
136
193
|
"attributes": {
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
194
|
+
"batch": "undefined",
|
|
195
|
+
"batchSize": 1,
|
|
196
|
+
"effect.fiber.interrupted": true,
|
|
140
197
|
},
|
|
141
198
|
},
|
|
142
199
|
],
|
|
@@ -146,6 +203,52 @@ exports[`otel > QueryBuilder subscription - async iterator with skipInitialRun 1
|
|
|
146
203
|
},
|
|
147
204
|
{
|
|
148
205
|
"_name": "LiveStore:queries",
|
|
206
|
+
"children": [
|
|
207
|
+
{
|
|
208
|
+
"_name": "LiveStore.subscribe",
|
|
209
|
+
"attributes": {
|
|
210
|
+
"queryLabel": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
211
|
+
},
|
|
212
|
+
"children": [
|
|
213
|
+
{
|
|
214
|
+
"_name": "db:SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ",
|
|
215
|
+
"attributes": {
|
|
216
|
+
"livestore.debugRefreshReason": "subscribe-initial-run:undefined",
|
|
217
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
218
|
+
"sql.rowsCount": 0,
|
|
219
|
+
},
|
|
220
|
+
"children": [
|
|
221
|
+
{
|
|
222
|
+
"_name": "sql-in-memory-select",
|
|
223
|
+
"attributes": {
|
|
224
|
+
"sql.cached": false,
|
|
225
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
226
|
+
"sql.rowsCount": 0,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"_name": "db:SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ",
|
|
233
|
+
"attributes": {
|
|
234
|
+
"livestore.debugRefreshReason": "commit",
|
|
235
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
236
|
+
"sql.rowsCount": 1,
|
|
237
|
+
},
|
|
238
|
+
"children": [
|
|
239
|
+
{
|
|
240
|
+
"_name": "sql-in-memory-select",
|
|
241
|
+
"attributes": {
|
|
242
|
+
"sql.cached": false,
|
|
243
|
+
"sql.query": "SELECT * FROM 'todos' WHERE "completed" = ? LIMIT ?",
|
|
244
|
+
"sql.rowsCount": 1,
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
],
|
|
149
252
|
},
|
|
150
253
|
],
|
|
151
254
|
}
|
|
@@ -156,9 +259,9 @@ exports[`otel > QueryBuilder subscription - async iterator with skipInitialRun 2
|
|
|
156
259
|
{
|
|
157
260
|
"_name": "LiveStore:commit",
|
|
158
261
|
"attributes": {
|
|
159
|
-
"livestore.eventTags":
|
|
160
|
-
|
|
161
|
-
]
|
|
262
|
+
"livestore.eventTags": [
|
|
263
|
+
"todo.created",
|
|
264
|
+
],
|
|
162
265
|
"livestore.eventsCount": 1,
|
|
163
266
|
},
|
|
164
267
|
"children": [
|
|
@@ -177,6 +280,19 @@ exports[`otel > QueryBuilder subscription - async iterator with skipInitialRun 2
|
|
|
177
280
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
178
281
|
},
|
|
179
282
|
},
|
|
283
|
+
{
|
|
284
|
+
"_name": "@livestore/common:execSql",
|
|
285
|
+
"attributes": {
|
|
286
|
+
"bindValueKeys": [
|
|
287
|
+
"$id",
|
|
288
|
+
"$seqNumGlobal",
|
|
289
|
+
"$seqNumClient",
|
|
290
|
+
"$seqNumRebaseGeneration",
|
|
291
|
+
],
|
|
292
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
293
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
294
|
+
},
|
|
295
|
+
},
|
|
180
296
|
],
|
|
181
297
|
},
|
|
182
298
|
],
|
|
@@ -223,18 +339,17 @@ exports[`otel > QueryBuilder subscription - basic functionality 1`] = `
|
|
|
223
339
|
"_name": "client-session-sync-processor:boot",
|
|
224
340
|
"children": [
|
|
225
341
|
{
|
|
226
|
-
"_name": "
|
|
342
|
+
"_name": "client-session-sync-processor:pull",
|
|
227
343
|
"attributes": {
|
|
228
|
-
"
|
|
229
|
-
"batchSize": 1,
|
|
344
|
+
"effect.fiber.interrupted": true,
|
|
230
345
|
},
|
|
231
346
|
},
|
|
232
347
|
{
|
|
233
|
-
"_name": "
|
|
348
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
234
349
|
"attributes": {
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
350
|
+
"batch": "undefined",
|
|
351
|
+
"batchSize": 1,
|
|
352
|
+
"effect.fiber.interrupted": true,
|
|
238
353
|
},
|
|
239
354
|
},
|
|
240
355
|
],
|
|
@@ -300,9 +415,9 @@ exports[`otel > QueryBuilder subscription - basic functionality 2`] = `
|
|
|
300
415
|
{
|
|
301
416
|
"_name": "LiveStore:commit",
|
|
302
417
|
"attributes": {
|
|
303
|
-
"livestore.eventTags":
|
|
304
|
-
|
|
305
|
-
]
|
|
418
|
+
"livestore.eventTags": [
|
|
419
|
+
"todo.created",
|
|
420
|
+
],
|
|
306
421
|
"livestore.eventsCount": 1,
|
|
307
422
|
},
|
|
308
423
|
"children": [
|
|
@@ -321,6 +436,19 @@ exports[`otel > QueryBuilder subscription - basic functionality 2`] = `
|
|
|
321
436
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
322
437
|
},
|
|
323
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"_name": "@livestore/common:execSql",
|
|
441
|
+
"attributes": {
|
|
442
|
+
"bindValueKeys": [
|
|
443
|
+
"$id",
|
|
444
|
+
"$seqNumGlobal",
|
|
445
|
+
"$seqNumClient",
|
|
446
|
+
"$seqNumRebaseGeneration",
|
|
447
|
+
],
|
|
448
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
449
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
450
|
+
},
|
|
451
|
+
},
|
|
324
452
|
],
|
|
325
453
|
},
|
|
326
454
|
],
|
|
@@ -367,18 +495,17 @@ exports[`otel > QueryBuilder subscription - direct table subscription 1`] = `
|
|
|
367
495
|
"_name": "client-session-sync-processor:boot",
|
|
368
496
|
"children": [
|
|
369
497
|
{
|
|
370
|
-
"_name": "
|
|
498
|
+
"_name": "client-session-sync-processor:pull",
|
|
371
499
|
"attributes": {
|
|
372
|
-
"
|
|
373
|
-
"batchSize": 1,
|
|
500
|
+
"effect.fiber.interrupted": true,
|
|
374
501
|
},
|
|
375
502
|
},
|
|
376
503
|
{
|
|
377
|
-
"_name": "
|
|
504
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
378
505
|
"attributes": {
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
"
|
|
506
|
+
"batch": "undefined",
|
|
507
|
+
"batchSize": 1,
|
|
508
|
+
"effect.fiber.interrupted": true,
|
|
382
509
|
},
|
|
383
510
|
},
|
|
384
511
|
],
|
|
@@ -444,9 +571,9 @@ exports[`otel > QueryBuilder subscription - direct table subscription 2`] = `
|
|
|
444
571
|
{
|
|
445
572
|
"_name": "LiveStore:commit",
|
|
446
573
|
"attributes": {
|
|
447
|
-
"livestore.eventTags":
|
|
448
|
-
|
|
449
|
-
]
|
|
574
|
+
"livestore.eventTags": [
|
|
575
|
+
"todo.created",
|
|
576
|
+
],
|
|
450
577
|
"livestore.eventsCount": 1,
|
|
451
578
|
},
|
|
452
579
|
"children": [
|
|
@@ -465,6 +592,19 @@ exports[`otel > QueryBuilder subscription - direct table subscription 2`] = `
|
|
|
465
592
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
466
593
|
},
|
|
467
594
|
},
|
|
595
|
+
{
|
|
596
|
+
"_name": "@livestore/common:execSql",
|
|
597
|
+
"attributes": {
|
|
598
|
+
"bindValueKeys": [
|
|
599
|
+
"$id",
|
|
600
|
+
"$seqNumGlobal",
|
|
601
|
+
"$seqNumClient",
|
|
602
|
+
"$seqNumRebaseGeneration",
|
|
603
|
+
],
|
|
604
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
605
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
606
|
+
},
|
|
607
|
+
},
|
|
468
608
|
],
|
|
469
609
|
},
|
|
470
610
|
],
|
|
@@ -511,18 +651,17 @@ exports[`otel > QueryBuilder subscription - skipInitialRun 1`] = `
|
|
|
511
651
|
"_name": "client-session-sync-processor:boot",
|
|
512
652
|
"children": [
|
|
513
653
|
{
|
|
514
|
-
"_name": "
|
|
654
|
+
"_name": "client-session-sync-processor:pull",
|
|
515
655
|
"attributes": {
|
|
516
|
-
"
|
|
517
|
-
"batchSize": 1,
|
|
656
|
+
"effect.fiber.interrupted": true,
|
|
518
657
|
},
|
|
519
658
|
},
|
|
520
659
|
{
|
|
521
|
-
"_name": "
|
|
660
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
522
661
|
"attributes": {
|
|
523
|
-
"
|
|
524
|
-
"
|
|
525
|
-
"
|
|
662
|
+
"batch": "undefined",
|
|
663
|
+
"batchSize": 1,
|
|
664
|
+
"effect.fiber.interrupted": true,
|
|
526
665
|
},
|
|
527
666
|
},
|
|
528
667
|
],
|
|
@@ -588,9 +727,9 @@ exports[`otel > QueryBuilder subscription - skipInitialRun 2`] = `
|
|
|
588
727
|
{
|
|
589
728
|
"_name": "LiveStore:commit",
|
|
590
729
|
"attributes": {
|
|
591
|
-
"livestore.eventTags":
|
|
592
|
-
|
|
593
|
-
]
|
|
730
|
+
"livestore.eventTags": [
|
|
731
|
+
"todo.created",
|
|
732
|
+
],
|
|
594
733
|
"livestore.eventsCount": 1,
|
|
595
734
|
},
|
|
596
735
|
"children": [
|
|
@@ -609,6 +748,19 @@ exports[`otel > QueryBuilder subscription - skipInitialRun 2`] = `
|
|
|
609
748
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
610
749
|
},
|
|
611
750
|
},
|
|
751
|
+
{
|
|
752
|
+
"_name": "@livestore/common:execSql",
|
|
753
|
+
"attributes": {
|
|
754
|
+
"bindValueKeys": [
|
|
755
|
+
"$id",
|
|
756
|
+
"$seqNumGlobal",
|
|
757
|
+
"$seqNumClient",
|
|
758
|
+
"$seqNumRebaseGeneration",
|
|
759
|
+
],
|
|
760
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
761
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
762
|
+
},
|
|
763
|
+
},
|
|
612
764
|
],
|
|
613
765
|
},
|
|
614
766
|
],
|
|
@@ -655,10 +807,9 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
|
655
807
|
"_name": "client-session-sync-processor:boot",
|
|
656
808
|
"children": [
|
|
657
809
|
{
|
|
658
|
-
"_name": "
|
|
810
|
+
"_name": "client-session-sync-processor:pull",
|
|
659
811
|
"attributes": {
|
|
660
|
-
"
|
|
661
|
-
"batchSize": 1,
|
|
812
|
+
"effect.fiber.interrupted": true,
|
|
662
813
|
},
|
|
663
814
|
},
|
|
664
815
|
{
|
|
@@ -666,14 +817,7 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
|
666
817
|
"attributes": {
|
|
667
818
|
"batch": "undefined",
|
|
668
819
|
"batchSize": 1,
|
|
669
|
-
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"_name": "client-session-sync-processor:pull",
|
|
673
|
-
"attributes": {
|
|
674
|
-
"code.stacktrace": "<STACKTRACE>",
|
|
675
|
-
"span.label": "⚠︎ Interrupted",
|
|
676
|
-
"status.interrupted": true,
|
|
820
|
+
"effect.fiber.interrupted": true,
|
|
677
821
|
},
|
|
678
822
|
},
|
|
679
823
|
],
|
|
@@ -765,9 +909,9 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 2`] = `
|
|
|
765
909
|
{
|
|
766
910
|
"_name": "LiveStore:commit",
|
|
767
911
|
"attributes": {
|
|
768
|
-
"livestore.eventTags":
|
|
769
|
-
|
|
770
|
-
]
|
|
912
|
+
"livestore.eventTags": [
|
|
913
|
+
"todo.created",
|
|
914
|
+
],
|
|
771
915
|
"livestore.eventsCount": 1,
|
|
772
916
|
},
|
|
773
917
|
"children": [
|
|
@@ -786,6 +930,19 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 2`] = `
|
|
|
786
930
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
787
931
|
},
|
|
788
932
|
},
|
|
933
|
+
{
|
|
934
|
+
"_name": "@livestore/common:execSql",
|
|
935
|
+
"attributes": {
|
|
936
|
+
"bindValueKeys": [
|
|
937
|
+
"$id",
|
|
938
|
+
"$seqNumGlobal",
|
|
939
|
+
"$seqNumClient",
|
|
940
|
+
"$seqNumRebaseGeneration",
|
|
941
|
+
],
|
|
942
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
943
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
944
|
+
},
|
|
945
|
+
},
|
|
789
946
|
],
|
|
790
947
|
},
|
|
791
948
|
],
|
|
@@ -805,9 +962,9 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 2`] = `
|
|
|
805
962
|
{
|
|
806
963
|
"_name": "LiveStore:commit",
|
|
807
964
|
"attributes": {
|
|
808
|
-
"livestore.eventTags":
|
|
809
|
-
|
|
810
|
-
]
|
|
965
|
+
"livestore.eventTags": [
|
|
966
|
+
"todo.created",
|
|
967
|
+
],
|
|
811
968
|
"livestore.eventsCount": 1,
|
|
812
969
|
},
|
|
813
970
|
"children": [
|
|
@@ -826,6 +983,19 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 2`] = `
|
|
|
826
983
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
827
984
|
},
|
|
828
985
|
},
|
|
986
|
+
{
|
|
987
|
+
"_name": "@livestore/common:execSql",
|
|
988
|
+
"attributes": {
|
|
989
|
+
"bindValueKeys": [
|
|
990
|
+
"$id",
|
|
991
|
+
"$seqNumGlobal",
|
|
992
|
+
"$seqNumClient",
|
|
993
|
+
"$seqNumRebaseGeneration",
|
|
994
|
+
],
|
|
995
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
996
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
997
|
+
},
|
|
998
|
+
},
|
|
829
999
|
],
|
|
830
1000
|
},
|
|
831
1001
|
],
|
|
@@ -872,18 +1042,17 @@ exports[`otel > otel 3`] = `
|
|
|
872
1042
|
"_name": "client-session-sync-processor:boot",
|
|
873
1043
|
"children": [
|
|
874
1044
|
{
|
|
875
|
-
"_name": "
|
|
1045
|
+
"_name": "client-session-sync-processor:pull",
|
|
876
1046
|
"attributes": {
|
|
877
|
-
"
|
|
878
|
-
"batchSize": 1,
|
|
1047
|
+
"effect.fiber.interrupted": true,
|
|
879
1048
|
},
|
|
880
1049
|
},
|
|
881
1050
|
{
|
|
882
|
-
"_name": "
|
|
1051
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
883
1052
|
"attributes": {
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"
|
|
1053
|
+
"batch": "undefined",
|
|
1054
|
+
"batchSize": 1,
|
|
1055
|
+
"effect.fiber.interrupted": true,
|
|
887
1056
|
},
|
|
888
1057
|
},
|
|
889
1058
|
],
|
|
@@ -939,9 +1108,9 @@ exports[`otel > otel 4`] = `
|
|
|
939
1108
|
{
|
|
940
1109
|
"_name": "LiveStore:commit",
|
|
941
1110
|
"attributes": {
|
|
942
|
-
"livestore.eventTags":
|
|
943
|
-
|
|
944
|
-
]
|
|
1111
|
+
"livestore.eventTags": [
|
|
1112
|
+
"todo.created",
|
|
1113
|
+
],
|
|
945
1114
|
"livestore.eventsCount": 1,
|
|
946
1115
|
},
|
|
947
1116
|
"children": [
|
|
@@ -960,6 +1129,19 @@ exports[`otel > otel 4`] = `
|
|
|
960
1129
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
961
1130
|
},
|
|
962
1131
|
},
|
|
1132
|
+
{
|
|
1133
|
+
"_name": "@livestore/common:execSql",
|
|
1134
|
+
"attributes": {
|
|
1135
|
+
"bindValueKeys": [
|
|
1136
|
+
"$id",
|
|
1137
|
+
"$seqNumGlobal",
|
|
1138
|
+
"$seqNumClient",
|
|
1139
|
+
"$seqNumRebaseGeneration",
|
|
1140
|
+
],
|
|
1141
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1142
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1143
|
+
},
|
|
1144
|
+
},
|
|
963
1145
|
],
|
|
964
1146
|
},
|
|
965
1147
|
],
|
|
@@ -1178,18 +1360,17 @@ exports[`otel > with thunks 7`] = `
|
|
|
1178
1360
|
"_name": "client-session-sync-processor:boot",
|
|
1179
1361
|
"children": [
|
|
1180
1362
|
{
|
|
1181
|
-
"_name": "
|
|
1363
|
+
"_name": "client-session-sync-processor:pull",
|
|
1182
1364
|
"attributes": {
|
|
1183
|
-
"
|
|
1184
|
-
"batchSize": 1,
|
|
1365
|
+
"effect.fiber.interrupted": true,
|
|
1185
1366
|
},
|
|
1186
1367
|
},
|
|
1187
1368
|
{
|
|
1188
|
-
"_name": "
|
|
1369
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
1189
1370
|
"attributes": {
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1192
|
-
"
|
|
1371
|
+
"batch": "undefined",
|
|
1372
|
+
"batchSize": 1,
|
|
1373
|
+
"effect.fiber.interrupted": true,
|
|
1193
1374
|
},
|
|
1194
1375
|
},
|
|
1195
1376
|
],
|
|
@@ -1251,9 +1432,9 @@ exports[`otel > with thunks 8`] = `
|
|
|
1251
1432
|
{
|
|
1252
1433
|
"_name": "LiveStore:commit",
|
|
1253
1434
|
"attributes": {
|
|
1254
|
-
"livestore.eventTags":
|
|
1255
|
-
|
|
1256
|
-
]
|
|
1435
|
+
"livestore.eventTags": [
|
|
1436
|
+
"todo.created",
|
|
1437
|
+
],
|
|
1257
1438
|
"livestore.eventsCount": 1,
|
|
1258
1439
|
},
|
|
1259
1440
|
"children": [
|
|
@@ -1272,6 +1453,19 @@ exports[`otel > with thunks 8`] = `
|
|
|
1272
1453
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
1273
1454
|
},
|
|
1274
1455
|
},
|
|
1456
|
+
{
|
|
1457
|
+
"_name": "@livestore/common:execSql",
|
|
1458
|
+
"attributes": {
|
|
1459
|
+
"bindValueKeys": [
|
|
1460
|
+
"$id",
|
|
1461
|
+
"$seqNumGlobal",
|
|
1462
|
+
"$seqNumClient",
|
|
1463
|
+
"$seqNumRebaseGeneration",
|
|
1464
|
+
],
|
|
1465
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1466
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1467
|
+
},
|
|
1468
|
+
},
|
|
1275
1469
|
],
|
|
1276
1470
|
},
|
|
1277
1471
|
],
|
|
@@ -1318,18 +1512,17 @@ exports[`otel > with thunks with query builder and without labels 3`] = `
|
|
|
1318
1512
|
"_name": "client-session-sync-processor:boot",
|
|
1319
1513
|
"children": [
|
|
1320
1514
|
{
|
|
1321
|
-
"_name": "
|
|
1515
|
+
"_name": "client-session-sync-processor:pull",
|
|
1322
1516
|
"attributes": {
|
|
1323
|
-
"
|
|
1324
|
-
"batchSize": 1,
|
|
1517
|
+
"effect.fiber.interrupted": true,
|
|
1325
1518
|
},
|
|
1326
1519
|
},
|
|
1327
1520
|
{
|
|
1328
|
-
"_name": "
|
|
1521
|
+
"_name": "@livestore/common:LeaderSyncProcessor:push",
|
|
1329
1522
|
"attributes": {
|
|
1330
|
-
"
|
|
1331
|
-
"
|
|
1332
|
-
"
|
|
1523
|
+
"batch": "undefined",
|
|
1524
|
+
"batchSize": 1,
|
|
1525
|
+
"effect.fiber.interrupted": true,
|
|
1333
1526
|
},
|
|
1334
1527
|
},
|
|
1335
1528
|
],
|
|
@@ -1391,9 +1584,9 @@ exports[`otel > with thunks with query builder and without labels 4`] = `
|
|
|
1391
1584
|
{
|
|
1392
1585
|
"_name": "LiveStore:commit",
|
|
1393
1586
|
"attributes": {
|
|
1394
|
-
"livestore.eventTags":
|
|
1395
|
-
|
|
1396
|
-
]
|
|
1587
|
+
"livestore.eventTags": [
|
|
1588
|
+
"todo.created",
|
|
1589
|
+
],
|
|
1397
1590
|
"livestore.eventsCount": 1,
|
|
1398
1591
|
},
|
|
1399
1592
|
"children": [
|
|
@@ -1412,6 +1605,19 @@ exports[`otel > with thunks with query builder and without labels 4`] = `
|
|
|
1412
1605
|
"sql.query": "INSERT INTO 'todos' ("id", "text", "completed") VALUES (?, ?, ?)",
|
|
1413
1606
|
},
|
|
1414
1607
|
},
|
|
1608
|
+
{
|
|
1609
|
+
"_name": "@livestore/common:execSql",
|
|
1610
|
+
"attributes": {
|
|
1611
|
+
"bindValueKeys": [
|
|
1612
|
+
"$id",
|
|
1613
|
+
"$seqNumGlobal",
|
|
1614
|
+
"$seqNumClient",
|
|
1615
|
+
"$seqNumRebaseGeneration",
|
|
1616
|
+
],
|
|
1617
|
+
"span.label": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1618
|
+
"sql": "INSERT OR REPLACE INTO __livestore_state_head (id, seqNumGlobal, seqNumClient, seqNumRebaseGeneration) VALUES ($id, $seqNumGlobal, $seqNumClient, $seqNumRebaseGeneration)",
|
|
1619
|
+
},
|
|
1620
|
+
},
|
|
1415
1621
|
],
|
|
1416
1622
|
},
|
|
1417
1623
|
],
|