@livestore/common 0.0.58-dev.3 → 0.0.58-dev.5
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 values: {
|
21
|
-
[x: string]: any;
|
22
|
-
};
|
23
20
|
readonly where: {
|
24
21
|
[x: string]: any;
|
25
22
|
};
|
26
|
-
}, {
|
27
23
|
readonly values: {
|
28
24
|
[x: string]: any;
|
29
25
|
};
|
26
|
+
}, {
|
30
27
|
readonly where: {
|
31
28
|
[x: string]: any;
|
32
29
|
};
|
30
|
+
readonly values: {
|
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 values: {
|
63
|
-
[x: string]: any;
|
64
|
-
};
|
65
62
|
readonly where: {
|
66
63
|
[x: string]: any;
|
67
64
|
};
|
68
|
-
}, {
|
69
65
|
readonly values: {
|
70
66
|
[x: string]: any;
|
71
67
|
};
|
68
|
+
}, {
|
72
69
|
readonly where: {
|
73
70
|
[x: string]: any;
|
74
71
|
};
|
72
|
+
readonly values: {
|
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: {
|
@@ -73,38 +73,38 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
73
73
|
slowQueries: Schema.transform<Schema.Struct<{
|
74
74
|
size: typeof Schema.Number;
|
75
75
|
items: Schema.Array$<Schema.Schema<{
|
76
|
-
readonly queryStr: string;
|
77
76
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
78
77
|
readonly [x: string]: string | number | Uint8Array | null;
|
79
78
|
}) & 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
|
}, {
|
85
|
-
readonly queryStr: string;
|
86
85
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
87
86
|
readonly [x: string]: string | number | readonly number[] | null;
|
88
87
|
} | undefined;
|
88
|
+
readonly queryStr: string;
|
89
89
|
readonly durationMs: number;
|
90
90
|
readonly rowsCount: number | undefined;
|
91
91
|
readonly queriedTables: readonly string[];
|
92
92
|
readonly startTimePerfNow: number;
|
93
93
|
}, never>>;
|
94
94
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
95
|
-
readonly queryStr: string;
|
96
95
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
97
96
|
readonly [x: string]: string | number | Uint8Array | null;
|
98
97
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
98
|
+
readonly queryStr: string;
|
99
99
|
readonly durationMs: number;
|
100
100
|
readonly rowsCount: number | undefined;
|
101
101
|
readonly queriedTables: ReadonlySet<string>;
|
102
102
|
readonly startTimePerfNow: number;
|
103
103
|
}>, import("../bounded-collections.js").BoundArray<{
|
104
|
-
readonly queryStr: string;
|
105
104
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
106
105
|
readonly [x: string]: string | number | Uint8Array | null;
|
107
106
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
107
|
+
readonly queryStr: string;
|
108
108
|
readonly durationMs: number;
|
109
109
|
readonly rowsCount: number | undefined;
|
110
110
|
readonly queriedTables: ReadonlySet<string>;
|
@@ -144,38 +144,38 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
144
144
|
slowQueries: Schema.transform<Schema.Struct<{
|
145
145
|
size: typeof Schema.Number;
|
146
146
|
items: Schema.Array$<Schema.Schema<{
|
147
|
-
readonly queryStr: string;
|
148
147
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
149
148
|
readonly [x: string]: string | number | Uint8Array | null;
|
150
149
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
150
|
+
readonly queryStr: string;
|
151
151
|
readonly durationMs: number;
|
152
152
|
readonly rowsCount: number | undefined;
|
153
153
|
readonly queriedTables: ReadonlySet<string>;
|
154
154
|
readonly startTimePerfNow: number;
|
155
155
|
}, {
|
156
|
-
readonly queryStr: string;
|
157
156
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
158
157
|
readonly [x: string]: string | number | readonly number[] | null;
|
159
158
|
} | undefined;
|
159
|
+
readonly queryStr: string;
|
160
160
|
readonly durationMs: number;
|
161
161
|
readonly rowsCount: number | undefined;
|
162
162
|
readonly queriedTables: readonly string[];
|
163
163
|
readonly startTimePerfNow: number;
|
164
164
|
}, never>>;
|
165
165
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
166
|
-
readonly queryStr: string;
|
167
166
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
168
167
|
readonly [x: string]: string | number | Uint8Array | null;
|
169
168
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
169
|
+
readonly queryStr: string;
|
170
170
|
readonly durationMs: number;
|
171
171
|
readonly rowsCount: number | undefined;
|
172
172
|
readonly queriedTables: ReadonlySet<string>;
|
173
173
|
readonly startTimePerfNow: number;
|
174
174
|
}>, import("../bounded-collections.js").BoundArray<{
|
175
|
-
readonly queryStr: string;
|
176
175
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
177
176
|
readonly [x: string]: string | number | Uint8Array | null;
|
178
177
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
178
|
+
readonly queryStr: string;
|
179
179
|
readonly durationMs: number;
|
180
180
|
readonly rowsCount: number | undefined;
|
181
181
|
readonly queriedTables: ReadonlySet<string>;
|
@@ -54,10 +54,10 @@ export declare const rawSqlMutation: MutationDef<"livestore.RawSql", {
|
|
54
54
|
} | undefined;
|
55
55
|
readonly writeTables?: readonly string[] | undefined;
|
56
56
|
}, {
|
57
|
+
readonly sql: string;
|
57
58
|
readonly bindValues?: {
|
58
59
|
readonly [x: string]: any;
|
59
60
|
} | undefined;
|
60
|
-
readonly sql: string;
|
61
61
|
readonly writeTables?: ReadonlySet<string> | undefined;
|
62
62
|
}>;
|
63
63
|
export type RawSqlMutation = typeof rawSqlMutation;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@livestore/common",
|
3
|
-
"version": "0.0.58-dev.
|
3
|
+
"version": "0.0.58-dev.5",
|
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
|
-
"@livestore/utils": "0.0.58-dev.
|
33
|
-
"effect-db-schema": "0.0.58-dev.
|
32
|
+
"@livestore/utils": "0.0.58-dev.5",
|
33
|
+
"effect-db-schema": "0.0.58-dev.5"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"vitest": "^2.0.4"
|