@livestore/react 0.1.0-dev.9 → 0.2.0-dev.0
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/LiveStoreProvider.test.js +2 -2
- package/dist/LiveStoreProvider.test.js.map +1 -1
- package/dist/__tests__/fixture.d.ts +372 -276
- package/dist/__tests__/fixture.d.ts.map +1 -1
- package/dist/useAtom.d.ts +2 -7
- package/dist/useAtom.d.ts.map +1 -1
- package/dist/useAtom.js +9 -8
- package/dist/useAtom.js.map +1 -1
- package/dist/useQuery.d.ts.map +1 -1
- package/dist/useQuery.js +3 -0
- package/dist/useQuery.js.map +1 -1
- package/dist/useQuery.test.js +4 -10
- package/dist/useQuery.test.js.map +1 -1
- package/dist/useRow.d.ts +18 -14
- package/dist/useRow.d.ts.map +1 -1
- package/dist/useRow.js +6 -9
- package/dist/useRow.js.map +1 -1
- package/dist/useRow.test.js +4 -9
- package/dist/useRow.test.js.map +1 -1
- package/dist/useScopedQuery.test.js +3 -2
- package/dist/useScopedQuery.test.js.map +1 -1
- package/package.json +6 -6
- package/src/LiveStoreProvider.test.tsx +2 -2
- package/src/__snapshots__/useRow.test.tsx.snap +33 -33
- package/src/useAtom.ts +14 -17
- package/src/useQuery.test.tsx +10 -10
- package/src/useQuery.ts +4 -0
- package/src/useRow.test.tsx +9 -11
- package/src/useRow.ts +36 -30
- package/src/useScopedQuery.test.tsx +3 -2
- package/dist/useTemporaryQuery.test.d.ts +0 -2
- package/dist/useTemporaryQuery.test.d.ts.map +0 -1
- package/dist/useTemporaryQuery.test.js +0 -59
- package/dist/useTemporaryQuery.test.js.map +0 -1
- package/src/useTemporaryQuery.ts +0 -131
|
@@ -12,29 +12,34 @@ export type AppState = {
|
|
|
12
12
|
newTodoText: string;
|
|
13
13
|
filter: Filter;
|
|
14
14
|
};
|
|
15
|
-
export declare const todos: DbSchema.TableDef<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
export declare const todos: DbSchema.TableDef<{
|
|
16
|
+
name: "todos";
|
|
17
|
+
columns: {
|
|
18
|
+
id: {
|
|
19
|
+
columnType: "text";
|
|
20
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
21
|
+
default: import("effect/Option").None<never>;
|
|
22
|
+
nullable: false;
|
|
23
|
+
primaryKey: true;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
columnType: "text";
|
|
27
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
28
|
+
default: import("effect/Option").Some<"">;
|
|
29
|
+
nullable: false;
|
|
30
|
+
primaryKey: false;
|
|
31
|
+
};
|
|
32
|
+
completed: {
|
|
33
|
+
columnType: "integer";
|
|
34
|
+
schema: import("effect/Schema").Schema<boolean, number, never>;
|
|
35
|
+
default: import("effect/Option").Some<false>;
|
|
36
|
+
nullable: false;
|
|
37
|
+
primaryKey: false;
|
|
38
|
+
};
|
|
36
39
|
};
|
|
37
|
-
|
|
40
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
41
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
42
|
+
}, {
|
|
38
43
|
isSingleton: false;
|
|
39
44
|
disableAutomaticIdColumn: false;
|
|
40
45
|
deriveMutations: {
|
|
@@ -42,6 +47,7 @@ export declare const todos: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefinition
|
|
|
42
47
|
localOnly: boolean;
|
|
43
48
|
};
|
|
44
49
|
isSingleColumn: false;
|
|
50
|
+
requiredInsertColumnNames: "id";
|
|
45
51
|
}, import("effect/Schema").Schema<{
|
|
46
52
|
readonly id: string;
|
|
47
53
|
readonly text: string;
|
|
@@ -51,33 +57,39 @@ export declare const todos: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefinition
|
|
|
51
57
|
readonly text: string;
|
|
52
58
|
readonly completed: number;
|
|
53
59
|
}, never>>;
|
|
54
|
-
export declare const app: DbSchema.TableDef<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
60
|
+
export declare const app: DbSchema.TableDef<{
|
|
61
|
+
name: "app";
|
|
62
|
+
columns: {
|
|
63
|
+
id: {
|
|
64
|
+
columnType: "text";
|
|
65
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
66
|
+
default: import("effect/Option").Some<"static">;
|
|
67
|
+
nullable: false;
|
|
68
|
+
primaryKey: true;
|
|
69
|
+
};
|
|
70
|
+
newTodoText: {
|
|
71
|
+
columnType: "text";
|
|
72
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
73
|
+
default: import("effect/Option").Some<"">;
|
|
74
|
+
nullable: true;
|
|
75
|
+
primaryKey: false;
|
|
76
|
+
};
|
|
77
|
+
filter: {
|
|
78
|
+
columnType: "text";
|
|
79
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
80
|
+
default: import("effect/Option").Some<"all">;
|
|
81
|
+
nullable: false;
|
|
82
|
+
primaryKey: false;
|
|
83
|
+
};
|
|
75
84
|
};
|
|
76
|
-
|
|
85
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
86
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
87
|
+
}, {
|
|
77
88
|
isSingleton: true;
|
|
78
89
|
disableAutomaticIdColumn: false;
|
|
79
90
|
deriveMutations: never;
|
|
80
91
|
isSingleColumn: false;
|
|
92
|
+
requiredInsertColumnNames: never;
|
|
81
93
|
}, import("effect/Schema").Schema<{
|
|
82
94
|
readonly id: string;
|
|
83
95
|
readonly newTodoText: string | null;
|
|
@@ -87,23 +99,28 @@ export declare const app: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefinition<"
|
|
|
87
99
|
readonly newTodoText: string | null;
|
|
88
100
|
readonly filter: string;
|
|
89
101
|
}, never>>;
|
|
90
|
-
export declare const AppComponentSchema: DbSchema.TableDef<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
export declare const AppComponentSchema: DbSchema.TableDef<{
|
|
103
|
+
name: "UserInfo";
|
|
104
|
+
columns: {
|
|
105
|
+
username: {
|
|
106
|
+
columnType: "text";
|
|
107
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
108
|
+
default: import("effect/Option").Some<"">;
|
|
109
|
+
nullable: false;
|
|
110
|
+
primaryKey: false;
|
|
111
|
+
};
|
|
112
|
+
text: {
|
|
113
|
+
columnType: "text";
|
|
114
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
115
|
+
default: import("effect/Option").Some<"">;
|
|
116
|
+
nullable: false;
|
|
117
|
+
primaryKey: false;
|
|
118
|
+
};
|
|
119
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
|
|
104
120
|
};
|
|
105
|
-
|
|
106
|
-
|
|
121
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
122
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
123
|
+
}, {
|
|
107
124
|
isSingleton: false;
|
|
108
125
|
disableAutomaticIdColumn: false;
|
|
109
126
|
deriveMutations: {
|
|
@@ -111,6 +128,7 @@ export declare const AppComponentSchema: DbSchema.TableDef<DbSchema.SqliteDsl.Ta
|
|
|
111
128
|
localOnly: boolean;
|
|
112
129
|
};
|
|
113
130
|
isSingleColumn: false;
|
|
131
|
+
requiredInsertColumnNames: never;
|
|
114
132
|
}, import("effect/Schema").Schema<{
|
|
115
133
|
readonly username: string;
|
|
116
134
|
readonly text: string;
|
|
@@ -120,16 +138,21 @@ export declare const AppComponentSchema: DbSchema.TableDef<DbSchema.SqliteDsl.Ta
|
|
|
120
138
|
readonly text: string;
|
|
121
139
|
readonly id: string;
|
|
122
140
|
}, never>>;
|
|
123
|
-
export declare const AppRouterSchema: DbSchema.TableDef<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
export declare const AppRouterSchema: DbSchema.TableDef<{
|
|
142
|
+
name: "AppRouter";
|
|
143
|
+
columns: {
|
|
144
|
+
currentTaskId: {
|
|
145
|
+
columnType: "text";
|
|
146
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
147
|
+
default: import("effect/Option").Some<null>;
|
|
148
|
+
nullable: true;
|
|
149
|
+
primaryKey: false;
|
|
150
|
+
};
|
|
151
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
|
|
130
152
|
};
|
|
131
|
-
|
|
132
|
-
|
|
153
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
154
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
155
|
+
}, {
|
|
133
156
|
isSingleton: true;
|
|
134
157
|
disableAutomaticIdColumn: false;
|
|
135
158
|
deriveMutations: {
|
|
@@ -137,6 +160,7 @@ export declare const AppRouterSchema: DbSchema.TableDef<DbSchema.SqliteDsl.Table
|
|
|
137
160
|
localOnly: boolean;
|
|
138
161
|
};
|
|
139
162
|
isSingleColumn: false;
|
|
163
|
+
requiredInsertColumnNames: never;
|
|
140
164
|
}, import("effect/Schema").Schema<{
|
|
141
165
|
readonly currentTaskId: string | null;
|
|
142
166
|
readonly id: "singleton";
|
|
@@ -145,29 +169,34 @@ export declare const AppRouterSchema: DbSchema.TableDef<DbSchema.SqliteDsl.Table
|
|
|
145
169
|
readonly id: "singleton";
|
|
146
170
|
}, never>>;
|
|
147
171
|
export declare const tables: {
|
|
148
|
-
todos: DbSchema.TableDef<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
172
|
+
todos: DbSchema.TableDef<{
|
|
173
|
+
name: "todos";
|
|
174
|
+
columns: {
|
|
175
|
+
id: {
|
|
176
|
+
columnType: "text";
|
|
177
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
178
|
+
default: import("effect/Option").None<never>;
|
|
179
|
+
nullable: false;
|
|
180
|
+
primaryKey: true;
|
|
181
|
+
};
|
|
182
|
+
text: {
|
|
183
|
+
columnType: "text";
|
|
184
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
185
|
+
default: import("effect/Option").Some<"">;
|
|
186
|
+
nullable: false;
|
|
187
|
+
primaryKey: false;
|
|
188
|
+
};
|
|
189
|
+
completed: {
|
|
190
|
+
columnType: "integer";
|
|
191
|
+
schema: import("effect/Schema").Schema<boolean, number, never>;
|
|
192
|
+
default: import("effect/Option").Some<false>;
|
|
193
|
+
nullable: false;
|
|
194
|
+
primaryKey: false;
|
|
195
|
+
};
|
|
169
196
|
};
|
|
170
|
-
|
|
197
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
198
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
199
|
+
}, {
|
|
171
200
|
isSingleton: false;
|
|
172
201
|
disableAutomaticIdColumn: false;
|
|
173
202
|
deriveMutations: {
|
|
@@ -175,6 +204,7 @@ export declare const tables: {
|
|
|
175
204
|
localOnly: boolean;
|
|
176
205
|
};
|
|
177
206
|
isSingleColumn: false;
|
|
207
|
+
requiredInsertColumnNames: "id";
|
|
178
208
|
}, import("effect/Schema").Schema<{
|
|
179
209
|
readonly id: string;
|
|
180
210
|
readonly text: string;
|
|
@@ -184,33 +214,39 @@ export declare const tables: {
|
|
|
184
214
|
readonly text: string;
|
|
185
215
|
readonly completed: number;
|
|
186
216
|
}, never>>;
|
|
187
|
-
app: DbSchema.TableDef<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
217
|
+
app: DbSchema.TableDef<{
|
|
218
|
+
name: "app";
|
|
219
|
+
columns: {
|
|
220
|
+
id: {
|
|
221
|
+
columnType: "text";
|
|
222
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
223
|
+
default: import("effect/Option").Some<"static">;
|
|
224
|
+
nullable: false;
|
|
225
|
+
primaryKey: true;
|
|
226
|
+
};
|
|
227
|
+
newTodoText: {
|
|
228
|
+
columnType: "text";
|
|
229
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
230
|
+
default: import("effect/Option").Some<"">;
|
|
231
|
+
nullable: true;
|
|
232
|
+
primaryKey: false;
|
|
233
|
+
};
|
|
234
|
+
filter: {
|
|
235
|
+
columnType: "text";
|
|
236
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
237
|
+
default: import("effect/Option").Some<"all">;
|
|
238
|
+
nullable: false;
|
|
239
|
+
primaryKey: false;
|
|
240
|
+
};
|
|
208
241
|
};
|
|
209
|
-
|
|
242
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
243
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
244
|
+
}, {
|
|
210
245
|
isSingleton: true;
|
|
211
246
|
disableAutomaticIdColumn: false;
|
|
212
247
|
deriveMutations: never;
|
|
213
248
|
isSingleColumn: false;
|
|
249
|
+
requiredInsertColumnNames: never;
|
|
214
250
|
}, import("effect/Schema").Schema<{
|
|
215
251
|
readonly id: string;
|
|
216
252
|
readonly newTodoText: string | null;
|
|
@@ -220,23 +256,28 @@ export declare const tables: {
|
|
|
220
256
|
readonly newTodoText: string | null;
|
|
221
257
|
readonly filter: string;
|
|
222
258
|
}, never>>;
|
|
223
|
-
AppComponentSchema: DbSchema.TableDef<
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
259
|
+
AppComponentSchema: DbSchema.TableDef<{
|
|
260
|
+
name: "UserInfo";
|
|
261
|
+
columns: {
|
|
262
|
+
username: {
|
|
263
|
+
columnType: "text";
|
|
264
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
265
|
+
default: import("effect/Option").Some<"">;
|
|
266
|
+
nullable: false;
|
|
267
|
+
primaryKey: false;
|
|
268
|
+
};
|
|
269
|
+
text: {
|
|
270
|
+
columnType: "text";
|
|
271
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
272
|
+
default: import("effect/Option").Some<"">;
|
|
273
|
+
nullable: false;
|
|
274
|
+
primaryKey: false;
|
|
275
|
+
};
|
|
276
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
|
|
237
277
|
};
|
|
238
|
-
|
|
239
|
-
|
|
278
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
279
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
280
|
+
}, {
|
|
240
281
|
isSingleton: false;
|
|
241
282
|
disableAutomaticIdColumn: false;
|
|
242
283
|
deriveMutations: {
|
|
@@ -244,6 +285,7 @@ export declare const tables: {
|
|
|
244
285
|
localOnly: boolean;
|
|
245
286
|
};
|
|
246
287
|
isSingleColumn: false;
|
|
288
|
+
requiredInsertColumnNames: never;
|
|
247
289
|
}, import("effect/Schema").Schema<{
|
|
248
290
|
readonly username: string;
|
|
249
291
|
readonly text: string;
|
|
@@ -253,16 +295,21 @@ export declare const tables: {
|
|
|
253
295
|
readonly text: string;
|
|
254
296
|
readonly id: string;
|
|
255
297
|
}, never>>;
|
|
256
|
-
AppRouterSchema: DbSchema.TableDef<
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
298
|
+
AppRouterSchema: DbSchema.TableDef<{
|
|
299
|
+
name: "AppRouter";
|
|
300
|
+
columns: {
|
|
301
|
+
currentTaskId: {
|
|
302
|
+
columnType: "text";
|
|
303
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
304
|
+
default: import("effect/Option").Some<null>;
|
|
305
|
+
nullable: true;
|
|
306
|
+
primaryKey: false;
|
|
307
|
+
};
|
|
308
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
|
|
263
309
|
};
|
|
264
|
-
|
|
265
|
-
|
|
310
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
311
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
312
|
+
}, {
|
|
266
313
|
isSingleton: true;
|
|
267
314
|
disableAutomaticIdColumn: false;
|
|
268
315
|
deriveMutations: {
|
|
@@ -270,6 +317,7 @@ export declare const tables: {
|
|
|
270
317
|
localOnly: boolean;
|
|
271
318
|
};
|
|
272
319
|
isSingleColumn: false;
|
|
320
|
+
requiredInsertColumnNames: never;
|
|
273
321
|
}, import("effect/Schema").Schema<{
|
|
274
322
|
readonly currentTaskId: string | null;
|
|
275
323
|
readonly id: "singleton";
|
|
@@ -280,29 +328,34 @@ export declare const tables: {
|
|
|
280
328
|
};
|
|
281
329
|
export declare const schema: import("@livestore/common/schema").FromInputSchema.DeriveSchema<{
|
|
282
330
|
tables: {
|
|
283
|
-
todos: DbSchema.TableDef<
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
331
|
+
todos: DbSchema.TableDef<{
|
|
332
|
+
name: "todos";
|
|
333
|
+
columns: {
|
|
334
|
+
id: {
|
|
335
|
+
columnType: "text";
|
|
336
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
337
|
+
default: import("effect/Option").None<never>;
|
|
338
|
+
nullable: false;
|
|
339
|
+
primaryKey: true;
|
|
340
|
+
};
|
|
341
|
+
text: {
|
|
342
|
+
columnType: "text";
|
|
343
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
344
|
+
default: import("effect/Option").Some<"">;
|
|
345
|
+
nullable: false;
|
|
346
|
+
primaryKey: false;
|
|
347
|
+
};
|
|
348
|
+
completed: {
|
|
349
|
+
columnType: "integer";
|
|
350
|
+
schema: import("effect/Schema").Schema<boolean, number, never>;
|
|
351
|
+
default: import("effect/Option").Some<false>;
|
|
352
|
+
nullable: false;
|
|
353
|
+
primaryKey: false;
|
|
354
|
+
};
|
|
304
355
|
};
|
|
305
|
-
|
|
356
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
357
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
358
|
+
}, {
|
|
306
359
|
isSingleton: false;
|
|
307
360
|
disableAutomaticIdColumn: false;
|
|
308
361
|
deriveMutations: {
|
|
@@ -310,6 +363,7 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
310
363
|
localOnly: boolean;
|
|
311
364
|
};
|
|
312
365
|
isSingleColumn: false;
|
|
366
|
+
requiredInsertColumnNames: "id";
|
|
313
367
|
}, import("effect/Schema").Schema<{
|
|
314
368
|
readonly id: string;
|
|
315
369
|
readonly text: string;
|
|
@@ -319,33 +373,39 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
319
373
|
readonly text: string;
|
|
320
374
|
readonly completed: number;
|
|
321
375
|
}, never>>;
|
|
322
|
-
app: DbSchema.TableDef<
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
376
|
+
app: DbSchema.TableDef<{
|
|
377
|
+
name: "app";
|
|
378
|
+
columns: {
|
|
379
|
+
id: {
|
|
380
|
+
columnType: "text";
|
|
381
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
382
|
+
default: import("effect/Option").Some<"static">;
|
|
383
|
+
nullable: false;
|
|
384
|
+
primaryKey: true;
|
|
385
|
+
};
|
|
386
|
+
newTodoText: {
|
|
387
|
+
columnType: "text";
|
|
388
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
389
|
+
default: import("effect/Option").Some<"">;
|
|
390
|
+
nullable: true;
|
|
391
|
+
primaryKey: false;
|
|
392
|
+
};
|
|
393
|
+
filter: {
|
|
394
|
+
columnType: "text";
|
|
395
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
396
|
+
default: import("effect/Option").Some<"all">;
|
|
397
|
+
nullable: false;
|
|
398
|
+
primaryKey: false;
|
|
399
|
+
};
|
|
343
400
|
};
|
|
344
|
-
|
|
401
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
402
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
403
|
+
}, {
|
|
345
404
|
isSingleton: true;
|
|
346
405
|
disableAutomaticIdColumn: false;
|
|
347
406
|
deriveMutations: never;
|
|
348
407
|
isSingleColumn: false;
|
|
408
|
+
requiredInsertColumnNames: never;
|
|
349
409
|
}, import("effect/Schema").Schema<{
|
|
350
410
|
readonly id: string;
|
|
351
411
|
readonly newTodoText: string | null;
|
|
@@ -355,23 +415,28 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
355
415
|
readonly newTodoText: string | null;
|
|
356
416
|
readonly filter: string;
|
|
357
417
|
}, never>>;
|
|
358
|
-
AppComponentSchema: DbSchema.TableDef<
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
418
|
+
AppComponentSchema: DbSchema.TableDef<{
|
|
419
|
+
name: "UserInfo";
|
|
420
|
+
columns: {
|
|
421
|
+
username: {
|
|
422
|
+
columnType: "text";
|
|
423
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
424
|
+
default: import("effect/Option").Some<"">;
|
|
425
|
+
nullable: false;
|
|
426
|
+
primaryKey: false;
|
|
427
|
+
};
|
|
428
|
+
text: {
|
|
429
|
+
columnType: "text";
|
|
430
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
431
|
+
default: import("effect/Option").Some<"">;
|
|
432
|
+
nullable: false;
|
|
433
|
+
primaryKey: false;
|
|
434
|
+
};
|
|
435
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
|
|
372
436
|
};
|
|
373
|
-
|
|
374
|
-
|
|
437
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
438
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
439
|
+
}, {
|
|
375
440
|
isSingleton: false;
|
|
376
441
|
disableAutomaticIdColumn: false;
|
|
377
442
|
deriveMutations: {
|
|
@@ -379,6 +444,7 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
379
444
|
localOnly: boolean;
|
|
380
445
|
};
|
|
381
446
|
isSingleColumn: false;
|
|
447
|
+
requiredInsertColumnNames: never;
|
|
382
448
|
}, import("effect/Schema").Schema<{
|
|
383
449
|
readonly username: string;
|
|
384
450
|
readonly text: string;
|
|
@@ -388,16 +454,21 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
388
454
|
readonly text: string;
|
|
389
455
|
readonly id: string;
|
|
390
456
|
}, never>>;
|
|
391
|
-
AppRouterSchema: DbSchema.TableDef<
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
457
|
+
AppRouterSchema: DbSchema.TableDef<{
|
|
458
|
+
name: "AppRouter";
|
|
459
|
+
columns: {
|
|
460
|
+
currentTaskId: {
|
|
461
|
+
columnType: "text";
|
|
462
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
463
|
+
default: import("effect/Option").Some<null>;
|
|
464
|
+
nullable: true;
|
|
465
|
+
primaryKey: false;
|
|
466
|
+
};
|
|
467
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
|
|
398
468
|
};
|
|
399
|
-
|
|
400
|
-
|
|
469
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
470
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
471
|
+
}, {
|
|
401
472
|
isSingleton: true;
|
|
402
473
|
disableAutomaticIdColumn: false;
|
|
403
474
|
deriveMutations: {
|
|
@@ -405,6 +476,7 @@ export declare const schema: import("@livestore/common/schema").FromInputSchema.
|
|
|
405
476
|
localOnly: boolean;
|
|
406
477
|
};
|
|
407
478
|
isSingleColumn: false;
|
|
479
|
+
requiredInsertColumnNames: never;
|
|
408
480
|
}, import("effect/Schema").Schema<{
|
|
409
481
|
readonly currentTaskId: string | null;
|
|
410
482
|
readonly id: "singleton";
|
|
@@ -423,29 +495,34 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
423
495
|
wrapper: ({ children }: any) => React.JSX.Element;
|
|
424
496
|
store: import("@livestore/livestore/src/index.js").Store<import("@livestore/livestore/src/index.js").BaseGraphQLContext, import("@livestore/common/schema").FromInputSchema.DeriveSchema<{
|
|
425
497
|
tables: {
|
|
426
|
-
todos: DbSchema.TableDef<
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
498
|
+
todos: DbSchema.TableDef<{
|
|
499
|
+
name: "todos";
|
|
500
|
+
columns: {
|
|
501
|
+
id: {
|
|
502
|
+
columnType: "text";
|
|
503
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
504
|
+
default: import("effect/Option").None<never>;
|
|
505
|
+
nullable: false;
|
|
506
|
+
primaryKey: true;
|
|
507
|
+
};
|
|
508
|
+
text: {
|
|
509
|
+
columnType: "text";
|
|
510
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
511
|
+
default: import("effect/Option").Some<"">;
|
|
512
|
+
nullable: false;
|
|
513
|
+
primaryKey: false;
|
|
514
|
+
};
|
|
515
|
+
completed: {
|
|
516
|
+
columnType: "integer";
|
|
517
|
+
schema: import("effect/Schema").Schema<boolean, number, never>;
|
|
518
|
+
default: import("effect/Option").Some<false>;
|
|
519
|
+
nullable: false;
|
|
520
|
+
primaryKey: false;
|
|
521
|
+
};
|
|
440
522
|
};
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
default: import("effect/Option").Some<false>;
|
|
445
|
-
nullable: false;
|
|
446
|
-
primaryKey: false;
|
|
447
|
-
};
|
|
448
|
-
}>, false, {
|
|
523
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
524
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
525
|
+
}, {
|
|
449
526
|
isSingleton: false;
|
|
450
527
|
disableAutomaticIdColumn: false;
|
|
451
528
|
deriveMutations: {
|
|
@@ -453,6 +530,7 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
453
530
|
localOnly: boolean;
|
|
454
531
|
};
|
|
455
532
|
isSingleColumn: false;
|
|
533
|
+
requiredInsertColumnNames: "id";
|
|
456
534
|
}, import("effect/Schema").Schema<{
|
|
457
535
|
readonly id: string;
|
|
458
536
|
readonly text: string;
|
|
@@ -462,33 +540,39 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
462
540
|
readonly text: string;
|
|
463
541
|
readonly completed: number;
|
|
464
542
|
}, never>>;
|
|
465
|
-
app: DbSchema.TableDef<
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
543
|
+
app: DbSchema.TableDef<{
|
|
544
|
+
name: "app";
|
|
545
|
+
columns: {
|
|
546
|
+
id: {
|
|
547
|
+
columnType: "text";
|
|
548
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
549
|
+
default: import("effect/Option").Some<"static">;
|
|
550
|
+
nullable: false;
|
|
551
|
+
primaryKey: true;
|
|
552
|
+
};
|
|
553
|
+
newTodoText: {
|
|
554
|
+
columnType: "text";
|
|
555
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
556
|
+
default: import("effect/Option").Some<"">;
|
|
557
|
+
nullable: true;
|
|
558
|
+
primaryKey: false;
|
|
559
|
+
};
|
|
560
|
+
filter: {
|
|
561
|
+
columnType: "text";
|
|
562
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
563
|
+
default: import("effect/Option").Some<"all">;
|
|
564
|
+
nullable: false;
|
|
565
|
+
primaryKey: false;
|
|
566
|
+
};
|
|
486
567
|
};
|
|
487
|
-
|
|
568
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
569
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
570
|
+
}, {
|
|
488
571
|
isSingleton: true;
|
|
489
572
|
disableAutomaticIdColumn: false;
|
|
490
573
|
deriveMutations: never;
|
|
491
574
|
isSingleColumn: false;
|
|
575
|
+
requiredInsertColumnNames: never;
|
|
492
576
|
}, import("effect/Schema").Schema<{
|
|
493
577
|
readonly id: string;
|
|
494
578
|
readonly newTodoText: string | null;
|
|
@@ -498,23 +582,28 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
498
582
|
readonly newTodoText: string | null;
|
|
499
583
|
readonly filter: string;
|
|
500
584
|
}, never>>;
|
|
501
|
-
AppComponentSchema: DbSchema.TableDef<
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
585
|
+
AppComponentSchema: DbSchema.TableDef<{
|
|
586
|
+
name: "UserInfo";
|
|
587
|
+
columns: {
|
|
588
|
+
username: {
|
|
589
|
+
columnType: "text";
|
|
590
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
591
|
+
default: import("effect/Option").Some<"">;
|
|
592
|
+
nullable: false;
|
|
593
|
+
primaryKey: false;
|
|
594
|
+
};
|
|
595
|
+
text: {
|
|
596
|
+
columnType: "text";
|
|
597
|
+
schema: import("effect/Schema").Schema<string, string, never>;
|
|
598
|
+
default: import("effect/Option").Some<"">;
|
|
599
|
+
nullable: false;
|
|
600
|
+
primaryKey: false;
|
|
601
|
+
};
|
|
602
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
|
|
515
603
|
};
|
|
516
|
-
|
|
517
|
-
|
|
604
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
605
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
606
|
+
}, {
|
|
518
607
|
isSingleton: false;
|
|
519
608
|
disableAutomaticIdColumn: false;
|
|
520
609
|
deriveMutations: {
|
|
@@ -522,6 +611,7 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
522
611
|
localOnly: boolean;
|
|
523
612
|
};
|
|
524
613
|
isSingleColumn: false;
|
|
614
|
+
requiredInsertColumnNames: never;
|
|
525
615
|
}, import("effect/Schema").Schema<{
|
|
526
616
|
readonly username: string;
|
|
527
617
|
readonly text: string;
|
|
@@ -531,16 +621,21 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
531
621
|
readonly text: string;
|
|
532
622
|
readonly id: string;
|
|
533
623
|
}, never>>;
|
|
534
|
-
AppRouterSchema: DbSchema.TableDef<
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
624
|
+
AppRouterSchema: DbSchema.TableDef<{
|
|
625
|
+
name: "AppRouter";
|
|
626
|
+
columns: {
|
|
627
|
+
currentTaskId: {
|
|
628
|
+
columnType: "text";
|
|
629
|
+
schema: import("effect/Schema").Schema<string | null, string | null, never>;
|
|
630
|
+
default: import("effect/Option").Some<null>;
|
|
631
|
+
nullable: true;
|
|
632
|
+
primaryKey: false;
|
|
633
|
+
};
|
|
634
|
+
id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
|
|
541
635
|
};
|
|
542
|
-
|
|
543
|
-
|
|
636
|
+
indexes?: ReadonlyArray<DbSchema.SqliteDsl.Index>;
|
|
637
|
+
ast: import("@livestore/db-schema/dist/ast/sqlite.js").Table;
|
|
638
|
+
}, {
|
|
544
639
|
isSingleton: true;
|
|
545
640
|
disableAutomaticIdColumn: false;
|
|
546
641
|
deriveMutations: {
|
|
@@ -548,6 +643,7 @@ export declare const makeTodoMvcReact: ({ otelTracer, otelContext, useGlobalReac
|
|
|
548
643
|
localOnly: boolean;
|
|
549
644
|
};
|
|
550
645
|
isSingleColumn: false;
|
|
646
|
+
requiredInsertColumnNames: never;
|
|
551
647
|
}, import("effect/Schema").Schema<{
|
|
552
648
|
readonly currentTaskId: string | null;
|
|
553
649
|
readonly id: "singleton";
|