@livestore/common 0.0.54-dev.32 → 0.0.54-dev.33
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.
|
@@ -17,19 +17,19 @@ export declare const makeDerivedMutationDefsForTable: <TTableDef extends DbSchem
|
|
|
17
17
|
readonly [x: string]: any;
|
|
18
18
|
}>;
|
|
19
19
|
update: import("./schema/mutations.js").MutationDef<`_Derived_Update_${string}`, {
|
|
20
|
-
readonly where: {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
};
|
|
23
20
|
readonly values: {
|
|
24
21
|
[x: string]: any;
|
|
25
22
|
};
|
|
26
|
-
}, {
|
|
27
23
|
readonly where: {
|
|
28
24
|
[x: string]: any;
|
|
29
25
|
};
|
|
26
|
+
}, {
|
|
30
27
|
readonly values: {
|
|
31
28
|
[x: string]: any;
|
|
32
29
|
};
|
|
30
|
+
readonly where: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
};
|
|
33
33
|
}>;
|
|
34
34
|
delete: import("./schema/mutations.js").MutationDef<`_Derived_Delete_${string}`, {
|
|
35
35
|
readonly where: {
|
|
@@ -59,19 +59,19 @@ export declare const deriveUpdateMutationDef: <TTableDef extends DbSchema.TableD
|
|
|
59
59
|
enabled: true;
|
|
60
60
|
};
|
|
61
61
|
}>>(table: TTableDef) => import("./schema/mutations.js").MutationDef<`_Derived_Update_${string}`, {
|
|
62
|
-
readonly where: {
|
|
63
|
-
[x: string]: any;
|
|
64
|
-
};
|
|
65
62
|
readonly values: {
|
|
66
63
|
[x: string]: any;
|
|
67
64
|
};
|
|
68
|
-
}, {
|
|
69
65
|
readonly where: {
|
|
70
66
|
[x: string]: any;
|
|
71
67
|
};
|
|
68
|
+
}, {
|
|
72
69
|
readonly values: {
|
|
73
70
|
[x: string]: any;
|
|
74
71
|
};
|
|
72
|
+
readonly where: {
|
|
73
|
+
[x: string]: any;
|
|
74
|
+
};
|
|
75
75
|
}>;
|
|
76
76
|
export declare const deriveDeleteMutationDef: <TTableDef extends DbSchema.TableDef<DbSchema.DefaultSqliteTableDefConstrained, boolean, DbSchema.TableOptions & {
|
|
77
77
|
deriveMutations: {
|
|
@@ -54,38 +54,38 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
|
54
54
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
55
55
|
size: typeof Schema.Number;
|
|
56
56
|
items: Schema.Array$<Schema.Schema<{
|
|
57
|
+
readonly queryStr: string;
|
|
57
58
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
58
59
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
59
60
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
60
|
-
readonly queryStr: string;
|
|
61
61
|
readonly durationMs: number;
|
|
62
62
|
readonly rowsCount: number | undefined;
|
|
63
63
|
readonly queriedTables: ReadonlySet<string>;
|
|
64
64
|
readonly startTimePerfNow: number;
|
|
65
65
|
}, {
|
|
66
|
+
readonly queryStr: string;
|
|
66
67
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
67
68
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
68
69
|
} | undefined;
|
|
69
|
-
readonly queryStr: string;
|
|
70
70
|
readonly durationMs: number;
|
|
71
71
|
readonly rowsCount: number | undefined;
|
|
72
72
|
readonly queriedTables: readonly string[];
|
|
73
73
|
readonly startTimePerfNow: number;
|
|
74
74
|
}, never>>;
|
|
75
75
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
76
|
+
readonly queryStr: string;
|
|
76
77
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
77
78
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
78
79
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
79
|
-
readonly queryStr: string;
|
|
80
80
|
readonly durationMs: number;
|
|
81
81
|
readonly rowsCount: number | undefined;
|
|
82
82
|
readonly queriedTables: ReadonlySet<string>;
|
|
83
83
|
readonly startTimePerfNow: number;
|
|
84
84
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
85
|
+
readonly queryStr: string;
|
|
85
86
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
86
87
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
87
88
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
88
|
-
readonly queryStr: string;
|
|
89
89
|
readonly durationMs: number;
|
|
90
90
|
readonly rowsCount: number | undefined;
|
|
91
91
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -119,38 +119,38 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
|
119
119
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
120
120
|
size: typeof Schema.Number;
|
|
121
121
|
items: Schema.Array$<Schema.Schema<{
|
|
122
|
+
readonly queryStr: string;
|
|
122
123
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
123
124
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
124
125
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
125
|
-
readonly queryStr: string;
|
|
126
126
|
readonly durationMs: number;
|
|
127
127
|
readonly rowsCount: number | undefined;
|
|
128
128
|
readonly queriedTables: ReadonlySet<string>;
|
|
129
129
|
readonly startTimePerfNow: number;
|
|
130
130
|
}, {
|
|
131
|
+
readonly queryStr: string;
|
|
131
132
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
132
133
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
133
134
|
} | undefined;
|
|
134
|
-
readonly queryStr: string;
|
|
135
135
|
readonly durationMs: number;
|
|
136
136
|
readonly rowsCount: number | undefined;
|
|
137
137
|
readonly queriedTables: readonly string[];
|
|
138
138
|
readonly startTimePerfNow: number;
|
|
139
139
|
}, never>>;
|
|
140
140
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
141
|
+
readonly queryStr: string;
|
|
141
142
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
142
143
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
143
144
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
144
|
-
readonly queryStr: string;
|
|
145
145
|
readonly durationMs: number;
|
|
146
146
|
readonly rowsCount: number | undefined;
|
|
147
147
|
readonly queriedTables: ReadonlySet<string>;
|
|
148
148
|
readonly startTimePerfNow: number;
|
|
149
149
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
150
|
+
readonly queryStr: string;
|
|
150
151
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
151
152
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
152
153
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
153
|
-
readonly queryStr: string;
|
|
154
154
|
readonly durationMs: number;
|
|
155
155
|
readonly rowsCount: number | undefined;
|
|
156
156
|
readonly queriedTables: ReadonlySet<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/common",
|
|
3
|
-
"version": "0.0.54-dev.
|
|
3
|
+
"version": "0.0.54-dev.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@opentelemetry/api": "^1.9.0",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"effect-db-schema": "0.0.54-dev.33",
|
|
33
|
+
"@livestore/utils": "0.0.54-dev.33"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"vitest": "^2.0.4"
|