@livestore/common 0.4.0-dev.17 → 0.4.0-dev.18
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/devtools/devtools-messages-client-session.d.ts +21 -21
- package/dist/devtools/devtools-messages-common.d.ts +6 -6
- package/dist/devtools/devtools-messages-leader.d.ts +24 -24
- package/dist/schema/state/sqlite/column-def.js +48 -29
- package/dist/schema/state/sqlite/column-def.js.map +1 -1
- package/dist/schema/state/sqlite/column-def.test.js +10 -0
- package/dist/schema/state/sqlite/column-def.test.js.map +1 -1
- package/dist/schema/state/sqlite/query-builder/impl.d.ts.map +1 -1
- package/dist/schema/state/sqlite/query-builder/impl.js +0 -1
- package/dist/schema/state/sqlite/query-builder/impl.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/src/schema/state/sqlite/column-def.test.ts +16 -0
- package/src/schema/state/sqlite/column-def.ts +58 -32
- package/src/schema/state/sqlite/query-builder/impl.ts +0 -1
- package/src/version.ts +1 -1
|
@@ -2,7 +2,7 @@ import { Schema } from '@livestore/utils/effect';
|
|
|
2
2
|
declare const DebugInfoReq_base: Schema.Struct<{
|
|
3
3
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoReq">;
|
|
4
4
|
} & {
|
|
5
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
5
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
6
6
|
} & {
|
|
7
7
|
clientId: typeof Schema.String;
|
|
8
8
|
sessionId: typeof Schema.String;
|
|
@@ -13,7 +13,7 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
|
13
13
|
declare const DebugInfoRes_base: Schema.Struct<{
|
|
14
14
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoRes">;
|
|
15
15
|
} & {
|
|
16
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
16
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
17
17
|
} & {
|
|
18
18
|
clientId: typeof Schema.String;
|
|
19
19
|
sessionId: typeof Schema.String;
|
|
@@ -73,7 +73,7 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
|
|
|
73
73
|
declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
|
74
74
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoHistorySubscribe">;
|
|
75
75
|
} & {
|
|
76
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
76
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
77
77
|
} & {
|
|
78
78
|
clientId: typeof Schema.String;
|
|
79
79
|
sessionId: typeof Schema.String;
|
|
@@ -86,7 +86,7 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
|
|
|
86
86
|
declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
87
87
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryRes">;
|
|
88
88
|
} & {
|
|
89
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
89
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
90
90
|
} & {
|
|
91
91
|
clientId: typeof Schema.String;
|
|
92
92
|
sessionId: typeof Schema.String;
|
|
@@ -147,7 +147,7 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
|
|
|
147
147
|
declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
|
148
148
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryUnsubscribe">;
|
|
149
149
|
} & {
|
|
150
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
150
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
151
151
|
} & {
|
|
152
152
|
clientId: typeof Schema.String;
|
|
153
153
|
sessionId: typeof Schema.String;
|
|
@@ -160,7 +160,7 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
|
|
|
160
160
|
declare const DebugInfoResetReq_base: Schema.Struct<{
|
|
161
161
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoResetReq">;
|
|
162
162
|
} & {
|
|
163
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
163
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
164
164
|
} & {
|
|
165
165
|
clientId: typeof Schema.String;
|
|
166
166
|
sessionId: typeof Schema.String;
|
|
@@ -171,7 +171,7 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
|
171
171
|
declare const DebugInfoResetRes_base: Schema.Struct<{
|
|
172
172
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoResetRes">;
|
|
173
173
|
} & {
|
|
174
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
174
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
175
175
|
} & {
|
|
176
176
|
clientId: typeof Schema.String;
|
|
177
177
|
sessionId: typeof Schema.String;
|
|
@@ -182,7 +182,7 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
|
182
182
|
declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
|
183
183
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryReq">;
|
|
184
184
|
} & {
|
|
185
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
185
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
186
186
|
} & {
|
|
187
187
|
clientId: typeof Schema.String;
|
|
188
188
|
sessionId: typeof Schema.String;
|
|
@@ -197,7 +197,7 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
|
|
|
197
197
|
declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
|
198
198
|
_tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryRes">;
|
|
199
199
|
} & {
|
|
200
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
200
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
201
201
|
} & {
|
|
202
202
|
clientId: typeof Schema.String;
|
|
203
203
|
sessionId: typeof Schema.String;
|
|
@@ -208,7 +208,7 @@ export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base
|
|
|
208
208
|
declare const SyncHeadSubscribe_base: Schema.Struct<{
|
|
209
209
|
_tag: Schema.tag<"LSD.ClientSession.SyncHeadSubscribe">;
|
|
210
210
|
} & {
|
|
211
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
211
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
212
212
|
} & {
|
|
213
213
|
clientId: typeof Schema.String;
|
|
214
214
|
sessionId: typeof Schema.String;
|
|
@@ -221,7 +221,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
|
|
|
221
221
|
declare const SyncHeadUnsubscribe_base: Schema.Struct<{
|
|
222
222
|
_tag: Schema.tag<"LSD.ClientSession.SyncHeadUnsubscribe">;
|
|
223
223
|
} & {
|
|
224
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
224
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
225
225
|
} & {
|
|
226
226
|
clientId: typeof Schema.String;
|
|
227
227
|
sessionId: typeof Schema.String;
|
|
@@ -234,7 +234,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
|
|
|
234
234
|
declare const SyncHeadRes_base: Schema.Struct<{
|
|
235
235
|
_tag: Schema.tag<"LSD.ClientSession.SyncHeadRes">;
|
|
236
236
|
} & {
|
|
237
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
237
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
238
238
|
} & {
|
|
239
239
|
clientId: typeof Schema.String;
|
|
240
240
|
sessionId: typeof Schema.String;
|
|
@@ -257,7 +257,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
|
|
|
257
257
|
declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
|
258
258
|
_tag: Schema.tag<"LSD.ClientSession.ReactivityGraphSubscribe">;
|
|
259
259
|
} & {
|
|
260
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
260
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
261
261
|
} & {
|
|
262
262
|
clientId: typeof Schema.String;
|
|
263
263
|
sessionId: typeof Schema.String;
|
|
@@ -271,7 +271,7 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
|
|
|
271
271
|
declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
|
272
272
|
_tag: Schema.tag<"LSD.ClientSession.ReactivityGraphUnsubscribe">;
|
|
273
273
|
} & {
|
|
274
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
274
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
275
275
|
} & {
|
|
276
276
|
clientId: typeof Schema.String;
|
|
277
277
|
sessionId: typeof Schema.String;
|
|
@@ -284,7 +284,7 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
|
|
|
284
284
|
declare const ReactivityGraphRes_base: Schema.Struct<{
|
|
285
285
|
_tag: Schema.tag<"LSD.ClientSession.ReactivityGraphRes">;
|
|
286
286
|
} & {
|
|
287
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
287
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
288
288
|
} & {
|
|
289
289
|
clientId: typeof Schema.String;
|
|
290
290
|
sessionId: typeof Schema.String;
|
|
@@ -298,7 +298,7 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
|
|
|
298
298
|
declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
|
299
299
|
_tag: Schema.tag<"LSD.ClientSession.LiveQueriesSubscribe">;
|
|
300
300
|
} & {
|
|
301
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
301
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
302
302
|
} & {
|
|
303
303
|
clientId: typeof Schema.String;
|
|
304
304
|
sessionId: typeof Schema.String;
|
|
@@ -311,7 +311,7 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
|
311
311
|
declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
|
312
312
|
_tag: Schema.tag<"LSD.ClientSession.LiveQueriesUnsubscribe">;
|
|
313
313
|
} & {
|
|
314
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
314
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
315
315
|
} & {
|
|
316
316
|
clientId: typeof Schema.String;
|
|
317
317
|
sessionId: typeof Schema.String;
|
|
@@ -341,7 +341,7 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
|
|
|
341
341
|
declare const LiveQueriesRes_base: Schema.Struct<{
|
|
342
342
|
_tag: Schema.tag<"LSD.ClientSession.LiveQueriesRes">;
|
|
343
343
|
} & {
|
|
344
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
344
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
345
345
|
} & {
|
|
346
346
|
clientId: typeof Schema.String;
|
|
347
347
|
sessionId: typeof Schema.String;
|
|
@@ -355,7 +355,7 @@ export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
|
|
355
355
|
declare const Ping_base: Schema.Struct<{
|
|
356
356
|
_tag: Schema.tag<"LSD.ClientSession.Ping">;
|
|
357
357
|
} & {
|
|
358
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
358
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
359
359
|
} & {
|
|
360
360
|
clientId: typeof Schema.String;
|
|
361
361
|
sessionId: typeof Schema.String;
|
|
@@ -366,7 +366,7 @@ export declare class Ping extends Ping_base {
|
|
|
366
366
|
declare const Pong_base: Schema.Struct<{
|
|
367
367
|
_tag: Schema.tag<"LSD.ClientSession.Pong">;
|
|
368
368
|
} & {
|
|
369
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
369
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
370
370
|
} & {
|
|
371
371
|
clientId: typeof Schema.String;
|
|
372
372
|
sessionId: typeof Schema.String;
|
|
@@ -377,7 +377,7 @@ export declare class Pong extends Pong_base {
|
|
|
377
377
|
declare const Disconnect_base: Schema.Struct<{
|
|
378
378
|
_tag: Schema.tag<"LSD.ClientSession.Disconnect">;
|
|
379
379
|
} & {
|
|
380
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
380
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
381
381
|
} & {
|
|
382
382
|
clientId: typeof Schema.String;
|
|
383
383
|
sessionId: typeof Schema.String;
|
|
@@ -3,23 +3,23 @@ export { NetworkStatus } from '../sync/sync-backend.ts';
|
|
|
3
3
|
export declare const requestId: typeof Schema.String;
|
|
4
4
|
export declare const clientId: typeof Schema.String;
|
|
5
5
|
export declare const sessionId: typeof Schema.String;
|
|
6
|
-
export declare const liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
6
|
+
export declare const liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
7
7
|
export declare const LSDMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
|
|
8
8
|
_tag: Schema.tag<Tag>;
|
|
9
9
|
} & {
|
|
10
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
10
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
11
11
|
} & Fields>;
|
|
12
12
|
export declare const LSDChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
|
|
13
13
|
_tag: Schema.tag<Tag>;
|
|
14
14
|
} & {
|
|
15
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
15
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
16
16
|
} & {
|
|
17
17
|
clientId: typeof Schema.String;
|
|
18
18
|
} & Fields>;
|
|
19
19
|
export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
|
|
20
20
|
_tag: Schema.tag<Tag>;
|
|
21
21
|
} & {
|
|
22
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
22
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
23
23
|
} & {
|
|
24
24
|
clientId: typeof Schema.String;
|
|
25
25
|
sessionId: typeof Schema.String;
|
|
@@ -27,7 +27,7 @@ export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields
|
|
|
27
27
|
export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
|
|
28
28
|
_tag: Schema.tag<Tag>;
|
|
29
29
|
} & {
|
|
30
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
30
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
31
31
|
} & {
|
|
32
32
|
clientId: typeof Schema.String;
|
|
33
33
|
sessionId: typeof Schema.String;
|
|
@@ -36,7 +36,7 @@ export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields
|
|
|
36
36
|
export declare const LSDReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
|
|
37
37
|
_tag: Schema.tag<Tag>;
|
|
38
38
|
} & {
|
|
39
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
39
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
40
40
|
} & {
|
|
41
41
|
clientId: typeof Schema.String;
|
|
42
42
|
} & {
|
|
@@ -3,7 +3,7 @@ import * as SyncState from '../sync/syncstate.ts';
|
|
|
3
3
|
declare const ResetAllDataReq_base: Schema.Struct<{
|
|
4
4
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
|
|
5
5
|
} & {
|
|
6
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
6
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
7
7
|
} & {
|
|
8
8
|
clientId: typeof Schema.String;
|
|
9
9
|
} & {
|
|
@@ -16,7 +16,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
|
16
16
|
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
|
17
17
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
|
|
18
18
|
} & {
|
|
19
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
19
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
20
20
|
} & {
|
|
21
21
|
clientId: typeof Schema.String;
|
|
22
22
|
} & {
|
|
@@ -38,7 +38,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
|
|
38
38
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
|
39
39
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
|
|
40
40
|
} & {
|
|
41
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
41
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
42
42
|
} & {
|
|
43
43
|
clientId: typeof Schema.String;
|
|
44
44
|
} & {
|
|
@@ -52,7 +52,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
|
52
52
|
declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
|
53
53
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
|
|
54
54
|
} & {
|
|
55
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
55
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
56
56
|
} & {
|
|
57
57
|
clientId: typeof Schema.String;
|
|
58
58
|
} & {
|
|
@@ -65,7 +65,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
|
|
|
65
65
|
declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
|
66
66
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
|
|
67
67
|
} & {
|
|
68
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
68
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
69
69
|
} & {
|
|
70
70
|
clientId: typeof Schema.String;
|
|
71
71
|
} & {
|
|
@@ -78,7 +78,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
|
|
|
78
78
|
declare const NetworkStatusRes_base: Schema.Struct<{
|
|
79
79
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
|
|
80
80
|
} & {
|
|
81
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
81
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
82
82
|
} & {
|
|
83
83
|
clientId: typeof Schema.String;
|
|
84
84
|
} & {
|
|
@@ -98,7 +98,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
|
|
98
98
|
declare const SyncingInfoReq_base: Schema.Struct<{
|
|
99
99
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
|
|
100
100
|
} & {
|
|
101
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
101
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
102
102
|
} & {
|
|
103
103
|
clientId: typeof Schema.String;
|
|
104
104
|
} & {
|
|
@@ -115,7 +115,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
|
|
|
115
115
|
declare const SyncingInfoRes_base: Schema.Struct<{
|
|
116
116
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
|
|
117
117
|
} & {
|
|
118
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
118
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
119
119
|
} & {
|
|
120
120
|
clientId: typeof Schema.String;
|
|
121
121
|
} & {
|
|
@@ -128,7 +128,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
|
|
128
128
|
declare const SyncHistorySubscribe_base: Schema.Struct<{
|
|
129
129
|
_tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
|
|
130
130
|
} & {
|
|
131
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
131
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
132
132
|
} & {
|
|
133
133
|
clientId: typeof Schema.String;
|
|
134
134
|
} & {
|
|
@@ -141,7 +141,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
|
|
|
141
141
|
declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
|
|
142
142
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
|
|
143
143
|
} & {
|
|
144
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
144
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
145
145
|
} & {
|
|
146
146
|
clientId: typeof Schema.String;
|
|
147
147
|
} & {
|
|
@@ -154,7 +154,7 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
|
|
|
154
154
|
declare const SyncHistoryRes_base: Schema.Struct<{
|
|
155
155
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
|
|
156
156
|
} & {
|
|
157
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
157
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
158
158
|
} & {
|
|
159
159
|
clientId: typeof Schema.String;
|
|
160
160
|
} & {
|
|
@@ -176,7 +176,7 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
|
|
176
176
|
declare const SyncHeadSubscribe_base: Schema.Struct<{
|
|
177
177
|
_tag: Schema.tag<"LSD.Leader.SyncHeadSubscribe">;
|
|
178
178
|
} & {
|
|
179
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
179
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
180
180
|
} & {
|
|
181
181
|
clientId: typeof Schema.String;
|
|
182
182
|
} & {
|
|
@@ -189,7 +189,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
|
|
|
189
189
|
declare const SyncHeadUnsubscribe_base: Schema.Struct<{
|
|
190
190
|
_tag: Schema.tag<"LSD.Leader.SyncHeadUnsubscribe">;
|
|
191
191
|
} & {
|
|
192
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
192
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
193
193
|
} & {
|
|
194
194
|
clientId: typeof Schema.String;
|
|
195
195
|
} & {
|
|
@@ -202,7 +202,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
|
|
|
202
202
|
declare const SyncHeadRes_base: Schema.Struct<{
|
|
203
203
|
_tag: Schema.tag<"LSD.Leader.SyncHeadRes">;
|
|
204
204
|
} & {
|
|
205
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
205
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
206
206
|
} & {
|
|
207
207
|
clientId: typeof Schema.String;
|
|
208
208
|
} & {
|
|
@@ -225,7 +225,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
|
|
|
225
225
|
declare const SnapshotReq_base: Schema.Struct<{
|
|
226
226
|
_tag: Schema.tag<"LSD.Leader.SnapshotReq">;
|
|
227
227
|
} & {
|
|
228
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
228
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
229
229
|
} & {
|
|
230
230
|
clientId: typeof Schema.String;
|
|
231
231
|
} & {
|
|
@@ -236,7 +236,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
|
|
|
236
236
|
declare const SnapshotRes_base: Schema.Struct<{
|
|
237
237
|
_tag: Schema.tag<"LSD.Leader.SnapshotRes">;
|
|
238
238
|
} & {
|
|
239
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
239
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
240
240
|
} & {
|
|
241
241
|
clientId: typeof Schema.String;
|
|
242
242
|
} & {
|
|
@@ -256,7 +256,7 @@ export declare const LoadDatabaseFile: import("./devtools-messages-common.ts").L
|
|
|
256
256
|
declare const SyncPull_base: Schema.Struct<{
|
|
257
257
|
_tag: Schema.tag<"LSD.Leader.SyncPull">;
|
|
258
258
|
} & {
|
|
259
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
259
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
260
260
|
} & {
|
|
261
261
|
payload: typeof SyncState.PayloadUpstream;
|
|
262
262
|
}>;
|
|
@@ -265,7 +265,7 @@ export declare class SyncPull extends SyncPull_base {
|
|
|
265
265
|
declare const CommitEventReq_base: Schema.Struct<{
|
|
266
266
|
_tag: Schema.tag<"LSD.Leader.CommitEventReq">;
|
|
267
267
|
} & {
|
|
268
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
268
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
269
269
|
} & {
|
|
270
270
|
clientId: typeof Schema.String;
|
|
271
271
|
} & {
|
|
@@ -281,7 +281,7 @@ export declare class CommitEventReq extends CommitEventReq_base {
|
|
|
281
281
|
declare const CommitEventRes_base: Schema.Struct<{
|
|
282
282
|
_tag: Schema.tag<"LSD.Leader.CommitEventRes">;
|
|
283
283
|
} & {
|
|
284
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
284
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
285
285
|
} & {
|
|
286
286
|
clientId: typeof Schema.String;
|
|
287
287
|
} & {
|
|
@@ -292,7 +292,7 @@ export declare class CommitEventRes extends CommitEventRes_base {
|
|
|
292
292
|
declare const EventlogReq_base: Schema.Struct<{
|
|
293
293
|
_tag: Schema.tag<"LSD.Leader.EventlogReq">;
|
|
294
294
|
} & {
|
|
295
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
295
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
296
296
|
} & {
|
|
297
297
|
clientId: typeof Schema.String;
|
|
298
298
|
} & {
|
|
@@ -303,7 +303,7 @@ export declare class EventlogReq extends EventlogReq_base {
|
|
|
303
303
|
declare const EventlogRes_base: Schema.Struct<{
|
|
304
304
|
_tag: Schema.tag<"LSD.Leader.EventlogRes">;
|
|
305
305
|
} & {
|
|
306
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
306
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
307
307
|
} & {
|
|
308
308
|
clientId: typeof Schema.String;
|
|
309
309
|
} & {
|
|
@@ -316,7 +316,7 @@ export declare class EventlogRes extends EventlogRes_base {
|
|
|
316
316
|
declare const Ping_base: Schema.Struct<{
|
|
317
317
|
_tag: Schema.tag<"LSD.Leader.Ping">;
|
|
318
318
|
} & {
|
|
319
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
319
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
320
320
|
} & {
|
|
321
321
|
clientId: typeof Schema.String;
|
|
322
322
|
} & {
|
|
@@ -327,7 +327,7 @@ export declare class Ping extends Ping_base {
|
|
|
327
327
|
declare const Pong_base: Schema.Struct<{
|
|
328
328
|
_tag: Schema.tag<"LSD.Leader.Pong">;
|
|
329
329
|
} & {
|
|
330
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
330
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
331
331
|
} & {
|
|
332
332
|
clientId: typeof Schema.String;
|
|
333
333
|
} & {
|
|
@@ -338,7 +338,7 @@ export declare class Pong extends Pong_base {
|
|
|
338
338
|
declare const Disconnect_base: Schema.Struct<{
|
|
339
339
|
_tag: Schema.tag<"LSD.Leader.Disconnect">;
|
|
340
340
|
} & {
|
|
341
|
-
liveStoreVersion: Schema.Literal<["0.4.0-dev.
|
|
341
|
+
liveStoreVersion: Schema.Literal<["0.4.0-dev.18"]>;
|
|
342
342
|
} & {
|
|
343
343
|
clientId: typeof Schema.String;
|
|
344
344
|
} & {
|
|
@@ -146,32 +146,13 @@ const getColumnForSchema = (schema, nullable = false) => {
|
|
|
146
146
|
}
|
|
147
147
|
return SqliteDsl.real({ schema: coreSchema, nullable });
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return SqliteDsl.text({ schema: coreSchema, nullable });
|
|
157
|
-
}
|
|
158
|
-
// Literals based on their encoded type
|
|
159
|
-
if (SchemaAST.isLiteral(encodedAst)) {
|
|
160
|
-
const value = encodedAst.literal;
|
|
161
|
-
if (typeof value === 'string')
|
|
162
|
-
return SqliteDsl.text({ schema: coreSchema, nullable });
|
|
163
|
-
if (typeof value === 'number') {
|
|
164
|
-
// Check if the original schema is Int
|
|
165
|
-
const id = SchemaAST.getIdentifierAnnotation(coreAst).pipe(Option.getOrElse(() => ''));
|
|
166
|
-
if (id === 'Int') {
|
|
167
|
-
return SqliteDsl.integer({ schema: coreSchema, nullable });
|
|
168
|
-
}
|
|
169
|
-
return SqliteDsl.real({ schema: coreSchema, nullable });
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if (isLiteralUnionOf(encodedAst, (value) => typeof value === 'string')) {
|
|
173
|
-
return SqliteDsl.text({ schema: coreSchema, nullable });
|
|
174
|
-
}
|
|
149
|
+
const literalColumn = getLiteralColumnDefinition(encodedAst, coreSchema, nullable, coreAst);
|
|
150
|
+
if (literalColumn)
|
|
151
|
+
return literalColumn;
|
|
152
|
+
// Fallback to checking the original AST in case the encoded schema differs
|
|
153
|
+
const coreLiteralColumn = getLiteralColumnDefinition(coreAst, coreSchema, nullable, coreAst);
|
|
154
|
+
if (coreLiteralColumn)
|
|
155
|
+
return coreLiteralColumn;
|
|
175
156
|
// Everything else needs JSON encoding
|
|
176
157
|
return SqliteDsl.json({ schema: coreSchema, nullable });
|
|
177
158
|
};
|
|
@@ -188,7 +169,45 @@ const stripNullable = (ast) => {
|
|
|
188
169
|
}
|
|
189
170
|
return SchemaAST.Union.make(coreTypes, ast.annotations);
|
|
190
171
|
};
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
172
|
+
const getLiteralColumnDefinition = (ast, schema, nullable, sourceAst) => {
|
|
173
|
+
const literalValues = extractLiteralValues(ast);
|
|
174
|
+
if (!literalValues)
|
|
175
|
+
return null;
|
|
176
|
+
const literalType = getLiteralValueType(literalValues);
|
|
177
|
+
switch (literalType) {
|
|
178
|
+
case 'string':
|
|
179
|
+
return SqliteDsl.text({ schema, nullable });
|
|
180
|
+
case 'number': {
|
|
181
|
+
const id = SchemaAST.getIdentifierAnnotation(sourceAst).pipe(Option.getOrElse(() => ''));
|
|
182
|
+
if (id === 'Int' || id === 'DateFromNumber') {
|
|
183
|
+
return SqliteDsl.integer({ schema, nullable });
|
|
184
|
+
}
|
|
185
|
+
const useIntegerColumn = literalValues.length > 1 && literalValues.every((value) => typeof value === 'number' && Number.isInteger(value));
|
|
186
|
+
return useIntegerColumn ? SqliteDsl.integer({ schema, nullable }) : SqliteDsl.real({ schema, nullable });
|
|
187
|
+
}
|
|
188
|
+
case 'boolean':
|
|
189
|
+
return SqliteDsl.boolean({ nullable });
|
|
190
|
+
case 'bigint':
|
|
191
|
+
return SqliteDsl.integer({ schema, nullable });
|
|
192
|
+
default:
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
const extractLiteralValues = (ast) => {
|
|
197
|
+
if (SchemaAST.isLiteral(ast))
|
|
198
|
+
return [ast.literal];
|
|
199
|
+
if (SchemaAST.isUnion(ast) && ast.types.length > 0 && ast.types.every((type) => SchemaAST.isLiteral(type))) {
|
|
200
|
+
return ast.types.map((type) => type.literal);
|
|
201
|
+
}
|
|
202
|
+
return null;
|
|
203
|
+
};
|
|
204
|
+
const getLiteralValueType = (literals) => {
|
|
205
|
+
const literalTypes = new Set(literals.map((value) => (value === null ? 'null' : typeof value)));
|
|
206
|
+
if (literalTypes.size !== 1)
|
|
207
|
+
return null;
|
|
208
|
+
const [literalType] = literalTypes;
|
|
209
|
+
return literalType === 'string' || literalType === 'number' || literalType === 'boolean' || literalType === 'bigint'
|
|
210
|
+
? literalType
|
|
211
|
+
: null;
|
|
212
|
+
};
|
|
194
213
|
//# sourceMappingURL=column-def.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-def.js","sourceRoot":"","sources":["../../../../src/schema/state/sqlite/column-def.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAClG,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB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ite.getColumnDefForSchema(StatusUnion).columnType).toBe('text');
|
|
226
226
|
});
|
|
227
|
+
it('should handle unions of numeric literals as integer column', () => {
|
|
228
|
+
const IntervalSchema = Schema.Literal(1, 5, 15, 30);
|
|
229
|
+
const columnDef = State.SQLite.getColumnDefForSchema(IntervalSchema);
|
|
230
|
+
expect(columnDef.columnType).toBe('integer');
|
|
231
|
+
});
|
|
232
|
+
it('should handle unions of non-integer numeric literals as real column', () => {
|
|
233
|
+
const PercentSchema = Schema.Literal(0.1, 0.2, 0.25);
|
|
234
|
+
const columnDef = State.SQLite.getColumnDefForSchema(PercentSchema);
|
|
235
|
+
expect(columnDef.columnType).toBe('real');
|
|
236
|
+
});
|
|
227
237
|
});
|
|
228
238
|
describe('binary data', () => {
|
|
229
239
|
it('should handle Uint8Array as blob column', () => {
|