@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.
@@ -12,29 +12,34 @@ export type AppState = {
12
12
  newTodoText: string;
13
13
  filter: Filter;
14
14
  };
15
- export declare const todos: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefinition<"todos", {
16
- id: {
17
- columnType: "text";
18
- schema: import("effect/Schema").Schema<string, string, never>;
19
- default: import("effect/Option").None<never>;
20
- nullable: false;
21
- primaryKey: true;
22
- };
23
- text: {
24
- columnType: "text";
25
- schema: import("effect/Schema").Schema<string, string, never>;
26
- default: import("effect/Option").Some<"">;
27
- nullable: false;
28
- primaryKey: false;
29
- };
30
- completed: {
31
- columnType: "integer";
32
- schema: import("effect/Schema").Schema<boolean, number, never>;
33
- default: import("effect/Option").Some<false>;
34
- nullable: false;
35
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"app", {
55
- id: {
56
- columnType: "text";
57
- schema: import("effect/Schema").Schema<string, string, never>;
58
- default: import("effect/Option").Some<"static">;
59
- nullable: false;
60
- primaryKey: true;
61
- };
62
- newTodoText: {
63
- columnType: "text";
64
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
65
- default: import("effect/Option").Some<"">;
66
- nullable: true;
67
- primaryKey: false;
68
- };
69
- filter: {
70
- columnType: "text";
71
- schema: import("effect/Schema").Schema<string, string, never>;
72
- default: import("effect/Option").Some<"all">;
73
- nullable: false;
74
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"UserInfo", {
91
- username: {
92
- columnType: "text";
93
- schema: import("effect/Schema").Schema<string, string, never>;
94
- default: import("effect/Option").Some<"">;
95
- nullable: false;
96
- primaryKey: false;
97
- };
98
- text: {
99
- columnType: "text";
100
- schema: import("effect/Schema").Schema<string, string, never>;
101
- default: import("effect/Option").Some<"">;
102
- nullable: false;
103
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
106
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"AppRouter", {
124
- currentTaskId: {
125
- columnType: "text";
126
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
127
- default: import("effect/Option").Some<null>;
128
- nullable: true;
129
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
132
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"todos", {
149
- id: {
150
- columnType: "text";
151
- schema: import("effect/Schema").Schema<string, string, never>;
152
- default: import("effect/Option").None<never>;
153
- nullable: false;
154
- primaryKey: true;
155
- };
156
- text: {
157
- columnType: "text";
158
- schema: import("effect/Schema").Schema<string, string, never>;
159
- default: import("effect/Option").Some<"">;
160
- nullable: false;
161
- primaryKey: false;
162
- };
163
- completed: {
164
- columnType: "integer";
165
- schema: import("effect/Schema").Schema<boolean, number, never>;
166
- default: import("effect/Option").Some<false>;
167
- nullable: false;
168
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"app", {
188
- id: {
189
- columnType: "text";
190
- schema: import("effect/Schema").Schema<string, string, never>;
191
- default: import("effect/Option").Some<"static">;
192
- nullable: false;
193
- primaryKey: true;
194
- };
195
- newTodoText: {
196
- columnType: "text";
197
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
198
- default: import("effect/Option").Some<"">;
199
- nullable: true;
200
- primaryKey: false;
201
- };
202
- filter: {
203
- columnType: "text";
204
- schema: import("effect/Schema").Schema<string, string, never>;
205
- default: import("effect/Option").Some<"all">;
206
- nullable: false;
207
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"UserInfo", {
224
- username: {
225
- columnType: "text";
226
- schema: import("effect/Schema").Schema<string, string, never>;
227
- default: import("effect/Option").Some<"">;
228
- nullable: false;
229
- primaryKey: false;
230
- };
231
- text: {
232
- columnType: "text";
233
- schema: import("effect/Schema").Schema<string, string, never>;
234
- default: import("effect/Option").Some<"">;
235
- nullable: false;
236
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
239
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"AppRouter", {
257
- currentTaskId: {
258
- columnType: "text";
259
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
260
- default: import("effect/Option").Some<null>;
261
- nullable: true;
262
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
265
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"todos", {
284
- id: {
285
- columnType: "text";
286
- schema: import("effect/Schema").Schema<string, string, never>;
287
- default: import("effect/Option").None<never>;
288
- nullable: false;
289
- primaryKey: true;
290
- };
291
- text: {
292
- columnType: "text";
293
- schema: import("effect/Schema").Schema<string, string, never>;
294
- default: import("effect/Option").Some<"">;
295
- nullable: false;
296
- primaryKey: false;
297
- };
298
- completed: {
299
- columnType: "integer";
300
- schema: import("effect/Schema").Schema<boolean, number, never>;
301
- default: import("effect/Option").Some<false>;
302
- nullable: false;
303
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"app", {
323
- id: {
324
- columnType: "text";
325
- schema: import("effect/Schema").Schema<string, string, never>;
326
- default: import("effect/Option").Some<"static">;
327
- nullable: false;
328
- primaryKey: true;
329
- };
330
- newTodoText: {
331
- columnType: "text";
332
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
333
- default: import("effect/Option").Some<"">;
334
- nullable: true;
335
- primaryKey: false;
336
- };
337
- filter: {
338
- columnType: "text";
339
- schema: import("effect/Schema").Schema<string, string, never>;
340
- default: import("effect/Option").Some<"all">;
341
- nullable: false;
342
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"UserInfo", {
359
- username: {
360
- columnType: "text";
361
- schema: import("effect/Schema").Schema<string, string, never>;
362
- default: import("effect/Option").Some<"">;
363
- nullable: false;
364
- primaryKey: false;
365
- };
366
- text: {
367
- columnType: "text";
368
- schema: import("effect/Schema").Schema<string, string, never>;
369
- default: import("effect/Option").Some<"">;
370
- nullable: false;
371
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
374
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"AppRouter", {
392
- currentTaskId: {
393
- columnType: "text";
394
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
395
- default: import("effect/Option").Some<null>;
396
- nullable: true;
397
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
400
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"todos", {
427
- id: {
428
- columnType: "text";
429
- schema: import("effect/Schema").Schema<string, string, never>;
430
- default: import("effect/Option").None<never>;
431
- nullable: false;
432
- primaryKey: true;
433
- };
434
- text: {
435
- columnType: "text";
436
- schema: import("effect/Schema").Schema<string, string, never>;
437
- default: import("effect/Option").Some<"">;
438
- nullable: false;
439
- primaryKey: false;
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
- completed: {
442
- columnType: "integer";
443
- schema: import("effect/Schema").Schema<boolean, number, never>;
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<DbSchema.SqliteDsl.TableDefinition<"app", {
466
- id: {
467
- columnType: "text";
468
- schema: import("effect/Schema").Schema<string, string, never>;
469
- default: import("effect/Option").Some<"static">;
470
- nullable: false;
471
- primaryKey: true;
472
- };
473
- newTodoText: {
474
- columnType: "text";
475
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
476
- default: import("effect/Option").Some<"">;
477
- nullable: true;
478
- primaryKey: false;
479
- };
480
- filter: {
481
- columnType: "text";
482
- schema: import("effect/Schema").Schema<string, string, never>;
483
- default: import("effect/Option").Some<"all">;
484
- nullable: false;
485
- primaryKey: false;
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
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"UserInfo", {
502
- username: {
503
- columnType: "text";
504
- schema: import("effect/Schema").Schema<string, string, never>;
505
- default: import("effect/Option").Some<"">;
506
- nullable: false;
507
- primaryKey: false;
508
- };
509
- text: {
510
- columnType: "text";
511
- schema: import("effect/Schema").Schema<string, string, never>;
512
- default: import("effect/Option").Some<"">;
513
- nullable: false;
514
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<string, string>;
517
- }>, false, {
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<DbSchema.SqliteDsl.TableDefinition<"AppRouter", {
535
- currentTaskId: {
536
- columnType: "text";
537
- schema: import("effect/Schema").Schema<string | null, string | null, never>;
538
- default: import("effect/Option").Some<null>;
539
- nullable: true;
540
- primaryKey: false;
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
- id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
543
- }>, false, {
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";