@livestore/common 0.0.53-dev.2 → 0.0.54-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/derived-mutations.d.ts +16 -8
- package/dist/derived-mutations.d.ts.map +1 -1
- package/dist/devtools/index.d.ts +137 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/index.js +115 -0
- package/dist/devtools/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schema/index.d.ts +48 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +57 -5
- package/dist/schema/index.js.map +1 -1
- package/package.json +3 -3
- package/src/devtools/index.ts +146 -0
- package/src/index.ts +1 -0
- package/src/schema/index.ts +73 -5
- package/dist/database-types.d.ts +0 -77
- package/dist/database-types.d.ts.map +0 -1
- package/dist/database-types.js +0 -2
- package/dist/database-types.js.map +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Schema } from '@livestore/utils/effect'
|
|
2
|
+
import { type SqliteDsl as __SqliteDsl } from 'effect-db-schema'
|
|
3
|
+
|
|
4
|
+
import { LiveStoreSchemaSchema } from '../schema/index.js'
|
|
5
|
+
import { mutationEventSchemaEncodedAny } from '../schema/mutations.js'
|
|
6
|
+
|
|
7
|
+
const requestId = Schema.String
|
|
8
|
+
|
|
9
|
+
export class SnapshotReq extends Schema.TaggedStruct('LSD.SnapshotReq', {
|
|
10
|
+
requestId,
|
|
11
|
+
}) {}
|
|
12
|
+
|
|
13
|
+
export class SnapshotRes extends Schema.TaggedStruct('LSD.SnapshotRes', {
|
|
14
|
+
requestId,
|
|
15
|
+
snapshot: Schema.Uint8Array,
|
|
16
|
+
}) {}
|
|
17
|
+
|
|
18
|
+
export class SerializedSchemaReq extends Schema.TaggedStruct('LSD.SerializedSchemaReq', {
|
|
19
|
+
requestId,
|
|
20
|
+
}) {}
|
|
21
|
+
|
|
22
|
+
export class SerializedSchemaRes extends Schema.TaggedStruct('LSD.SerializedSchemaRes', {
|
|
23
|
+
requestId,
|
|
24
|
+
schema: LiveStoreSchemaSchema,
|
|
25
|
+
}) {}
|
|
26
|
+
|
|
27
|
+
export class MutationBroadcast extends Schema.TaggedStruct('LSD.MutationBroadcast', {
|
|
28
|
+
requestId,
|
|
29
|
+
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
30
|
+
persisted: Schema.Boolean,
|
|
31
|
+
}) {}
|
|
32
|
+
|
|
33
|
+
export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
34
|
+
requestId,
|
|
35
|
+
}) {}
|
|
36
|
+
|
|
37
|
+
export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
|
|
38
|
+
requestId,
|
|
39
|
+
mutationLog: Schema.Uint8Array,
|
|
40
|
+
}) {}
|
|
41
|
+
|
|
42
|
+
export class SubscribeSignalsReq extends Schema.TaggedStruct('LSD.SubscribeSignalsReq', {
|
|
43
|
+
requestId,
|
|
44
|
+
includeResults: Schema.Boolean,
|
|
45
|
+
}) {}
|
|
46
|
+
|
|
47
|
+
export class SubscribeSignalsRes extends Schema.TaggedStruct('LSD.SubscribeSignalsRes', {
|
|
48
|
+
requestId,
|
|
49
|
+
signals: Schema.Any,
|
|
50
|
+
}) {}
|
|
51
|
+
|
|
52
|
+
export class SubscribeLiveQueriesReq extends Schema.TaggedStruct('LSD.SubscribeLiveQueriesReq', {
|
|
53
|
+
requestId,
|
|
54
|
+
}) {}
|
|
55
|
+
|
|
56
|
+
export class SerializedLiveQuery extends Schema.Struct({
|
|
57
|
+
_tag: Schema.Literal('js', 'sql', 'graphql'),
|
|
58
|
+
id: Schema.Number,
|
|
59
|
+
label: Schema.String,
|
|
60
|
+
runs: Schema.Number,
|
|
61
|
+
executionTimes: Schema.Array(Schema.Number),
|
|
62
|
+
lastestResult: Schema.Any,
|
|
63
|
+
activeSubscriptions: Schema.Array(
|
|
64
|
+
Schema.Struct({ frames: Schema.Array(Schema.Struct({ name: Schema.String, filePath: Schema.String })) }),
|
|
65
|
+
),
|
|
66
|
+
}) {}
|
|
67
|
+
|
|
68
|
+
export class SubscribeLiveQueriesRes extends Schema.TaggedStruct('LSD.SubscribeLiveQueriesRes', {
|
|
69
|
+
requestId,
|
|
70
|
+
liveQueries: Schema.Array(SerializedLiveQuery),
|
|
71
|
+
}) {}
|
|
72
|
+
|
|
73
|
+
export class ResetAllDataReq extends Schema.TaggedStruct('LSD.ResetAllDataReq', {
|
|
74
|
+
requestId,
|
|
75
|
+
mode: Schema.Literal('all-data', 'only-app-db'),
|
|
76
|
+
}) {}
|
|
77
|
+
|
|
78
|
+
export class ResetAllDataRes extends Schema.TaggedStruct('LSD.ResetAllDataRes', {
|
|
79
|
+
requestId,
|
|
80
|
+
}) {}
|
|
81
|
+
|
|
82
|
+
export class AppHostReadyReq extends Schema.TaggedStruct('LSD.AppHostReadyReq', {
|
|
83
|
+
requestId,
|
|
84
|
+
}) {}
|
|
85
|
+
export class AppHostReadyRes extends Schema.TaggedStruct('LSD.AppHostReadyRes', {
|
|
86
|
+
requestId,
|
|
87
|
+
}) {}
|
|
88
|
+
|
|
89
|
+
export class Disconnect extends Schema.TaggedStruct('LSD.Disconnect', {
|
|
90
|
+
requestId,
|
|
91
|
+
}) {}
|
|
92
|
+
|
|
93
|
+
export class SchemaChanged extends Schema.TaggedStruct('LSD.SchemaChanged', {
|
|
94
|
+
requestId,
|
|
95
|
+
}) {}
|
|
96
|
+
|
|
97
|
+
// export const Message = Schema.Union(
|
|
98
|
+
// SnapshotReq,
|
|
99
|
+
// SnapshotRes,
|
|
100
|
+
// SerializedSchemaReq,
|
|
101
|
+
// SerializedSchemaRes,
|
|
102
|
+
// MutationBroadcast,
|
|
103
|
+
// MutationLogReq,
|
|
104
|
+
// MutationLogRes,
|
|
105
|
+
// SubscribeSignalsReq,
|
|
106
|
+
// SubscribeSignalsRes,
|
|
107
|
+
// SubscribeLiveQueriesReq,
|
|
108
|
+
// SubscribeLiveQueriesRes,
|
|
109
|
+
// ResetAllDataReq,
|
|
110
|
+
// ResetAllDataRes,
|
|
111
|
+
// Disconnect,
|
|
112
|
+
// SchemaChanged,
|
|
113
|
+
// AppHostReadyReq,
|
|
114
|
+
// AppHostReadyRes,
|
|
115
|
+
// )
|
|
116
|
+
|
|
117
|
+
// export type Message = typeof Message.Type
|
|
118
|
+
|
|
119
|
+
export const MessageToAppHost = Schema.Union(
|
|
120
|
+
SnapshotReq,
|
|
121
|
+
SerializedSchemaReq,
|
|
122
|
+
MutationLogReq,
|
|
123
|
+
SubscribeSignalsReq,
|
|
124
|
+
SubscribeLiveQueriesReq,
|
|
125
|
+
ResetAllDataReq,
|
|
126
|
+
AppHostReadyReq,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
export type MessageToAppHost = typeof MessageToAppHost.Type
|
|
130
|
+
|
|
131
|
+
export const MessageFromAppHost = Schema.Union(
|
|
132
|
+
SnapshotRes,
|
|
133
|
+
SerializedSchemaRes,
|
|
134
|
+
MutationLogRes,
|
|
135
|
+
SubscribeSignalsRes,
|
|
136
|
+
SubscribeLiveQueriesRes,
|
|
137
|
+
ResetAllDataRes,
|
|
138
|
+
AppHostReadyRes,
|
|
139
|
+
Disconnect,
|
|
140
|
+
SchemaChanged,
|
|
141
|
+
MutationBroadcast,
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
export type MessageFromAppHost = typeof MessageFromAppHost.Type
|
|
145
|
+
|
|
146
|
+
export const makeBc = () => new BroadcastChannel('livestore-devtools')
|
package/src/index.ts
CHANGED
package/src/schema/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { isReadonlyArray, shouldNeverHappen } from '@livestore/utils'
|
|
1
|
+
import { isReadonlyArray, pick, shouldNeverHappen } from '@livestore/utils'
|
|
2
2
|
import type { ReadonlyArray } from '@livestore/utils/effect'
|
|
3
|
-
import {
|
|
3
|
+
import { ReadonlyRecord, Schema } from '@livestore/utils/effect'
|
|
4
|
+
import { SqliteAst, SqliteDsl } from 'effect-db-schema'
|
|
4
5
|
|
|
5
6
|
import type { MigrationOptions } from '../adapter-types.js'
|
|
6
7
|
import { makeDerivedMutationDefsForTable } from '../derived-mutations.js'
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
rawSqlMutation,
|
|
13
14
|
} from './mutations.js'
|
|
14
15
|
import { systemTables } from './system-tables.js'
|
|
15
|
-
import { type TableDef, tableHasDerivedMutations } from './table-def.js'
|
|
16
|
+
import { table, type TableDef, tableHasDerivedMutations } from './table-def.js'
|
|
16
17
|
|
|
17
18
|
export * from './system-tables.js'
|
|
18
19
|
export * as DbSchema from './table-def.js'
|
|
@@ -20,10 +21,14 @@ export * as ParseUtils from './parse-utils.js'
|
|
|
20
21
|
export * from './mutations.js'
|
|
21
22
|
export * from './schema-helpers.js'
|
|
22
23
|
|
|
24
|
+
export const LiveStoreSchemaSymbol = Symbol.for('livestore.LiveStoreSchema')
|
|
25
|
+
export type LiveStoreSchemaSymbol = typeof LiveStoreSchemaSymbol
|
|
26
|
+
|
|
23
27
|
export type LiveStoreSchema<
|
|
24
28
|
TDbSchema extends SqliteDsl.DbSchema = SqliteDsl.DbSchema,
|
|
25
29
|
TMutationsDefRecord extends MutationDefRecord = MutationDefRecord,
|
|
26
30
|
> = {
|
|
31
|
+
readonly _Type: LiveStoreSchemaSymbol
|
|
27
32
|
/** Only used on type-level */
|
|
28
33
|
readonly _DbSchemaType: TDbSchema
|
|
29
34
|
/** Only used on type-level */
|
|
@@ -99,8 +104,9 @@ export const makeSchema = <TInputSchema extends InputSchema>(
|
|
|
99
104
|
})
|
|
100
105
|
|
|
101
106
|
return {
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
_Type: LiveStoreSchemaSymbol,
|
|
108
|
+
_DbSchemaType: Symbol.for('livestore.DbSchemaType') as any,
|
|
109
|
+
_MutationDefMapType: Symbol.for('livestore.MutationDefMapType') as any,
|
|
104
110
|
tables,
|
|
105
111
|
mutations,
|
|
106
112
|
migrationOptions: inputSchema.migrations ?? { strategy: 'hard-reset' },
|
|
@@ -133,3 +139,65 @@ namespace FromInputSchema {
|
|
|
133
139
|
? { [K in keyof TMutations as TMutations[K]['name']]: TMutations[K] } & { 'livestore.RawSql': RawSqlMutation }
|
|
134
140
|
: never
|
|
135
141
|
}
|
|
142
|
+
|
|
143
|
+
export const LiveStoreSchemaFromSelf: Schema.Schema<LiveStoreSchema> = Schema.declare(
|
|
144
|
+
(_): _ is LiveStoreSchema =>
|
|
145
|
+
(_ as any)._DbSchemaType === Symbol.for('livestore.DbSchemaType') &&
|
|
146
|
+
(_ as any)._MutationDefMapType === Symbol.for('livestore.MutationDefMapType'),
|
|
147
|
+
{
|
|
148
|
+
identifier: 'LiveStoreSchemaFromSelf',
|
|
149
|
+
pretty: () => (_) => `LiveStoreSchema(hash: ${_.hash})`,
|
|
150
|
+
arbitrary: () => (fc) => fc.anything as any,
|
|
151
|
+
equivalence: () => (a, b) => a.hash === b.hash,
|
|
152
|
+
},
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
export const TableDefColumnSchema = Schema.Struct({
|
|
156
|
+
columnType: Schema.Literal('blob', 'integer', 'text', 'real'),
|
|
157
|
+
nullable: Schema.Boolean,
|
|
158
|
+
primaryKey: Schema.Boolean,
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export const TableDefSqliteSchema = Schema.Struct({
|
|
162
|
+
name: Schema.String,
|
|
163
|
+
columns: Schema.Record(Schema.String, TableDefColumnSchema),
|
|
164
|
+
ast: Schema.Any,
|
|
165
|
+
})
|
|
166
|
+
|
|
167
|
+
export const TableDefSchema = Schema.Struct({
|
|
168
|
+
sqliteDef: TableDefSqliteSchema,
|
|
169
|
+
isSingleColumn: Schema.Boolean,
|
|
170
|
+
options: Schema.Any,
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
export const LiveStoreSchemaSchema = Schema.transform(
|
|
174
|
+
Schema.Struct({
|
|
175
|
+
tables: Schema.Record(Schema.String, TableDefSchema),
|
|
176
|
+
// mutations: Schema.Record(Schema.String, MutationDef.AnySchema),
|
|
177
|
+
// migrationOptions: Schema.Struct({ strategy: Schema.Literal('hard-reset') }),
|
|
178
|
+
}),
|
|
179
|
+
LiveStoreSchemaFromSelf,
|
|
180
|
+
{
|
|
181
|
+
encode: (schema) => ({
|
|
182
|
+
tables: ReadonlyRecord.map(Object.fromEntries(schema.tables.entries()), (t) => ({
|
|
183
|
+
sqliteDef: {
|
|
184
|
+
name: t.sqliteDef.name,
|
|
185
|
+
columns: ReadonlyRecord.map(t.sqliteDef.columns, (c) => pick(c!, ['columnType', 'nullable', 'primaryKey'])),
|
|
186
|
+
ast: JSON.parse(JSON.stringify(t.sqliteDef.ast)),
|
|
187
|
+
},
|
|
188
|
+
isSingleColumn: t.isSingleColumn,
|
|
189
|
+
options: t.options,
|
|
190
|
+
})),
|
|
191
|
+
}),
|
|
192
|
+
decode: (schema) => {
|
|
193
|
+
const tables = ReadonlyRecord.map(schema.tables, (t) => {
|
|
194
|
+
const columns = ReadonlyRecord.map(t.sqliteDef.columns, (c) => {
|
|
195
|
+
const makeCol = SqliteDsl[c.columnType] as any
|
|
196
|
+
return makeCol({ nullable: c.nullable, primaryKey: c.primaryKey })
|
|
197
|
+
})
|
|
198
|
+
return table(t.sqliteDef.name, columns, t.options)
|
|
199
|
+
})
|
|
200
|
+
return makeSchema({ tables })
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
)
|
package/dist/database-types.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type * as otel from '@opentelemetry/api';
|
|
2
|
-
import type { LiveStoreSchema, MutationEvent } from './schema/index.js';
|
|
3
|
-
import type { PreparedBindValues } from './util.js';
|
|
4
|
-
export interface PreparedStatement {
|
|
5
|
-
execute(bindValues: PreparedBindValues | undefined): GetRowsChangedCount;
|
|
6
|
-
select<T>(bindValues: PreparedBindValues | undefined): ReadonlyArray<T>;
|
|
7
|
-
finalize(): void;
|
|
8
|
-
}
|
|
9
|
-
export type DatabaseImpl = {
|
|
10
|
-
/** Main thread database (usually in-memory) */
|
|
11
|
-
mainDb: InMemoryDatabase;
|
|
12
|
-
storageDb: StorageDatabase;
|
|
13
|
-
};
|
|
14
|
-
export type InMemoryDatabase = {
|
|
15
|
-
_tag: 'InMemoryDatabase';
|
|
16
|
-
prepare(queryStr: string): PreparedStatement;
|
|
17
|
-
execute(queryStr: string, bindValues: PreparedBindValues | undefined): GetRowsChangedCount;
|
|
18
|
-
dangerouslyReset(): Promise<void>;
|
|
19
|
-
export(): Uint8Array;
|
|
20
|
-
};
|
|
21
|
-
export type ResetMode = 'all-data' | 'only-app-db';
|
|
22
|
-
export type StorageDatabase = {
|
|
23
|
-
execute(queryStr: string, bindValues: PreparedBindValues | undefined, span: otel.Span | undefined): Promise<void>;
|
|
24
|
-
mutate(mutationEventEncoded: MutationEvent.Any, span: otel.Span): Promise<void>;
|
|
25
|
-
dangerouslyReset(mode: ResetMode): Promise<void>;
|
|
26
|
-
export(span: otel.Span | undefined): Promise<Uint8Array | undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* This is different from `export` since in `getInitialSnapshot` is usually the place for migrations etc to happen
|
|
29
|
-
*/
|
|
30
|
-
getInitialSnapshot(): Promise<Uint8Array>;
|
|
31
|
-
getMutationLogData(): Promise<Uint8Array>;
|
|
32
|
-
shutdown(): Promise<void>;
|
|
33
|
-
};
|
|
34
|
-
export type GetRowsChangedCount = () => number;
|
|
35
|
-
export type BootDb = {
|
|
36
|
-
_tag: 'BootDb';
|
|
37
|
-
execute(queryStr: string, bindValues?: PreparedBindValues): void;
|
|
38
|
-
mutate: <const TMutationArg extends ReadonlyArray<MutationEvent.Any>>(...list: TMutationArg) => void;
|
|
39
|
-
select<T>(queryStr: string, bindValues?: PreparedBindValues): ReadonlyArray<T>;
|
|
40
|
-
txn(callback: () => void): void;
|
|
41
|
-
};
|
|
42
|
-
export type MigrationOptions<TSchema extends LiveStoreSchema = LiveStoreSchema> = MigrationOptionsFromMutationLog<TSchema> | {
|
|
43
|
-
strategy: 'hard-reset';
|
|
44
|
-
hooks?: Partial<MigrationHooks>;
|
|
45
|
-
} | {
|
|
46
|
-
strategy: 'manual';
|
|
47
|
-
migrate: (oldDb: Uint8Array) => Promise<Uint8Array> | Uint8Array;
|
|
48
|
-
hooks?: Partial<MigrationHooks>;
|
|
49
|
-
};
|
|
50
|
-
export type MigrationHooks = {
|
|
51
|
-
/** Runs on the empty in-memory database with no database schemas applied yet */
|
|
52
|
-
init: MigrationHook;
|
|
53
|
-
/** Runs before applying the migration strategy but after table schemas have been applied and singleton rows have been created */
|
|
54
|
-
pre: MigrationHook;
|
|
55
|
-
/** Runs after applying the migration strategy before creating export snapshot and closing the database */
|
|
56
|
-
post: MigrationHook;
|
|
57
|
-
};
|
|
58
|
-
export type MigrationHook = (db: InMemoryDatabase) => void | Promise<void>;
|
|
59
|
-
export type MigrationOptionsFromMutationLog<TSchema extends LiveStoreSchema = LiveStoreSchema> = {
|
|
60
|
-
strategy: 'from-mutation-log';
|
|
61
|
-
/**
|
|
62
|
-
* Mutations to exclude in the mutation log
|
|
63
|
-
*
|
|
64
|
-
* @default new Set(['livestore.RawSql'])
|
|
65
|
-
*/
|
|
66
|
-
excludeMutations?: ReadonlySet<keyof TSchema['_MutationDefMapType'] & string>;
|
|
67
|
-
hooks?: Partial<MigrationHooks>;
|
|
68
|
-
logging?: {
|
|
69
|
-
excludeAffectedRows?: (sqlStmt: string) => boolean;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export type DatabaseFactory = (opts: {
|
|
73
|
-
otelTracer: otel.Tracer;
|
|
74
|
-
otelContext: otel.Context;
|
|
75
|
-
schema: LiveStoreSchema;
|
|
76
|
-
}) => DatabaseImpl | Promise<DatabaseImpl>;
|
|
77
|
-
//# sourceMappingURL=database-types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EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAA;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;CAChC,CAAA;AAEL,MAAM,MAAM,cAAc,GAAG;IAC3B,gFAAgF;IAChF,IAAI,EAAE,aAAa,CAAA;IACnB,iIAAiI;IACjI,GAAG,EAAE,aAAa,CAAA;IAClB,0GAA0G;IAC1G,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE1E,MAAM,MAAM,+BAA+B,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI;IAC/F,QAAQ,EAAE,mBAAmB,CAAA;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,OAAO,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAC,CAAA;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE;QACR,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;KACnD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE;IACnC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAA;IACvB,WAAW,EAAE,IAAI,CAAC,OAAO,CAAA;IACzB,MAAM,EAAE,eAAe,CAAA;CACxB,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA"}
|
package/dist/database-types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database-types.js","sourceRoot":"","sources":["../src/database-types.ts"],"names":[],"mappings":""}
|