@forinda/kickjs-db 7.2.1 → 7.4.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/cli.d.mts +10 -10
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/custom-type-j8k__3sL.mjs +12 -0
- package/dist/custom-type-j8k__3sL.mjs.map +1 -0
- package/dist/devtools-events.d.mts +2 -1
- package/dist/devtools-events.mjs +1 -1
- package/dist/{index-Ci5DXgUh.d.mts → index-DF69HndC.d.mts} +39 -312
- package/dist/index-DF69HndC.d.mts.map +1 -0
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +2 -2
- package/dist/mysql.d.mts +11 -12
- package/dist/mysql.d.mts.map +1 -1
- package/dist/mysql.mjs +2 -2
- package/dist/mysql.mjs.map +1 -1
- package/dist/pg-BJmYKLhI.mjs +12 -0
- package/dist/pg-BJmYKLhI.mjs.map +1 -0
- package/dist/pg.d.mts +21 -21
- package/dist/pg.d.mts.map +1 -1
- package/dist/pg.mjs +2 -2
- package/dist/pg.mjs.map +1 -1
- package/dist/schema.d.mts +88 -0
- package/dist/schema.d.mts.map +1 -0
- package/dist/schema.mjs +12 -0
- package/dist/schema.mjs.map +1 -0
- package/dist/sqlite.d.mts +7 -8
- package/dist/sqlite.d.mts.map +1 -1
- package/dist/sqlite.mjs +2 -2
- package/dist/src-BnHTLx5l.mjs +166 -0
- package/dist/src-BnHTLx5l.mjs.map +1 -0
- package/dist/table-Bl5SbKRg.d.mts +309 -0
- package/dist/table-Bl5SbKRg.d.mts.map +1 -0
- package/dist/{types-NkfgZHEN.d.mts → types-DtvYnaXL.d.mts} +3 -4
- package/dist/types-DtvYnaXL.d.mts.map +1 -0
- package/package.json +14 -9
- package/dist/index-Ci5DXgUh.d.mts.map +0 -1
- package/dist/src-BLr8KOo1.mjs +0 -156
- package/dist/src-BLr8KOo1.mjs.map +0 -1
- package/dist/types-NkfgZHEN.d.mts.map +0 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/snapshot/types.d.ts
|
|
3
|
+
type Dialect = 'postgres' | 'sqlite' | 'mysql';
|
|
4
|
+
type FkAction = 'cascade' | 'restrict' | 'set_null' | 'set_default' | 'no_action';
|
|
5
|
+
interface ColumnSnapshot {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
nullable: boolean;
|
|
9
|
+
default: string | null;
|
|
10
|
+
primaryKey: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface IndexSnapshot {
|
|
13
|
+
name: string;
|
|
14
|
+
columns: string[];
|
|
15
|
+
unique: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface ForeignKeySnapshot {
|
|
18
|
+
name: string;
|
|
19
|
+
columns: string[];
|
|
20
|
+
refTable: string;
|
|
21
|
+
refColumns: string[];
|
|
22
|
+
onDelete: FkAction;
|
|
23
|
+
onUpdate: FkAction;
|
|
24
|
+
}
|
|
25
|
+
interface CheckSnapshot {
|
|
26
|
+
name: string;
|
|
27
|
+
expression: string;
|
|
28
|
+
}
|
|
29
|
+
interface TableSnapshot {
|
|
30
|
+
/**
|
|
31
|
+
* Bare table name, unqualified. The schema (when any) lives in
|
|
32
|
+
* {@link TableSnapshot.schema}; the map key on `SchemaSnapshot.tables` is
|
|
33
|
+
* the qualified form (`billing.invoices`).
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Named SQL schema, from `pgSchema('x').table(...)`. Absent for tables in
|
|
38
|
+
* the connection's default search_path, which keeps pre-schema snapshots
|
|
39
|
+
* byte-identical (and their migration hashes valid).
|
|
40
|
+
*/
|
|
41
|
+
schema?: string;
|
|
42
|
+
columns: Record<string, ColumnSnapshot>;
|
|
43
|
+
indexes: IndexSnapshot[];
|
|
44
|
+
foreignKeys: ForeignKeySnapshot[];
|
|
45
|
+
checks: CheckSnapshot[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* PostgreSQL ENUM type declaration. Currently PG-only; the field is
|
|
49
|
+
* optional on `SchemaSnapshot` so other dialects don't have to carry
|
|
50
|
+
* a phantom `enums: {}`.
|
|
51
|
+
*/
|
|
52
|
+
interface EnumSnapshot {
|
|
53
|
+
name: string;
|
|
54
|
+
/** Allowed values, in declaration order. PG preserves the order. */
|
|
55
|
+
values: readonly string[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Resolved relation graph attached as a sidecar on the snapshot.
|
|
59
|
+
* Lives on `SchemaSnapshot.relations` (optional). Keyed
|
|
60
|
+
* sourceTable → relationName → resolved entry. Consumed by the
|
|
61
|
+
* relational-query compiler in `packages/db/src/query/`. The
|
|
62
|
+
* migration pipeline does not read this field — relations are
|
|
63
|
+
* query-time sugar, not DDL.
|
|
64
|
+
*
|
|
65
|
+
* Shaped this way (rather than re-using the runtime `RelationsDecl`)
|
|
66
|
+
* so the snapshot stays JSON-serializable: no function thunks, no
|
|
67
|
+
* back-references to table objects.
|
|
68
|
+
*/
|
|
69
|
+
interface RelationSnapshot {
|
|
70
|
+
kind: 'one' | 'many';
|
|
71
|
+
/** Target table name. */
|
|
72
|
+
target: string;
|
|
73
|
+
/** Columns on the source table that participate in the join. */
|
|
74
|
+
sourceColumns: readonly string[];
|
|
75
|
+
/** Columns on the target table that participate in the join. */
|
|
76
|
+
targetColumns: readonly string[];
|
|
77
|
+
/**
|
|
78
|
+
* Optional pairing tag from `relationName: 'foo'` on both sides of
|
|
79
|
+
* the relation. Disambiguates multi-FK schemas.
|
|
80
|
+
*/
|
|
81
|
+
relationName?: string;
|
|
82
|
+
}
|
|
83
|
+
interface SchemaSnapshot {
|
|
84
|
+
version: 1;
|
|
85
|
+
dialect: Dialect;
|
|
86
|
+
/**
|
|
87
|
+
* Keyed by QUALIFIED name — `billing.invoices` for a table declared through
|
|
88
|
+
* `pgSchema('billing')`, the bare name otherwise. Qualifying the key is what
|
|
89
|
+
* lets two schemas hold same-named tables without colliding, and it makes
|
|
90
|
+
* every `table: string` field on a diff `Change` already schema-correct:
|
|
91
|
+
* `quoteIdent` splits on `.`, rendering `"billing"."invoices"`.
|
|
92
|
+
*/
|
|
93
|
+
tables: Record<string, TableSnapshot>;
|
|
94
|
+
/**
|
|
95
|
+
* Named schemas the tables in this snapshot live in, sorted. Drives
|
|
96
|
+
* `CREATE SCHEMA IF NOT EXISTS` emission. PG-only; absent when no table
|
|
97
|
+
* declares a schema, so existing snapshots keep their exact shape.
|
|
98
|
+
*/
|
|
99
|
+
schemas?: readonly string[];
|
|
100
|
+
/** ENUM types declared via `pgEnum()`. PG-only; absent on other dialects. */
|
|
101
|
+
enums?: Record<string, EnumSnapshot>;
|
|
102
|
+
/**
|
|
103
|
+
* Optional relation sidecar populated when the schema includes
|
|
104
|
+
* `relations()` declarations. Absent when no relations are
|
|
105
|
+
* declared so M0/M1 callers see the same snapshot shape they
|
|
106
|
+
* always did.
|
|
107
|
+
*/
|
|
108
|
+
relations?: Record<string, Record<string, RelationSnapshot>>;
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/dsl/columns/types.d.ts
|
|
112
|
+
/**
|
|
113
|
+
* Runtime + type representation of a column reference (e.g. `users.id`).
|
|
114
|
+
* Carries the parent table name, the column's own name, plus runtime
|
|
115
|
+
* accessors used by FK thunks and constraint builders.
|
|
116
|
+
*
|
|
117
|
+
* Exported so adopters can annotate self-referencing thunks without
|
|
118
|
+
* spelling the shape inline:
|
|
119
|
+
*
|
|
120
|
+
* parentId: uuid().references((): ColumnRef => categories.id)
|
|
121
|
+
*
|
|
122
|
+
* Without the annotation the initializer of a self-referencing const
|
|
123
|
+
* trips TS7022 — TS needs to infer the const while the initializer
|
|
124
|
+
* already references it.
|
|
125
|
+
*/
|
|
126
|
+
interface ColumnRef {
|
|
127
|
+
__tableName: string;
|
|
128
|
+
__name: string;
|
|
129
|
+
__builder: ColumnBuilder;
|
|
130
|
+
__state: () => ReturnType<ColumnBuilder['__state']>;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Resolved FK spec — `table` / `column` are pulled by invoking `thunk()`
|
|
134
|
+
* lazily. The thunk pattern lets self-referencing tables work:
|
|
135
|
+
*
|
|
136
|
+
* const categories = table('categories', {
|
|
137
|
+
* id: uuid().primaryKey().defaultRandom(),
|
|
138
|
+
* parentId: uuid().references((): ColumnRef => categories.id),
|
|
139
|
+
* })
|
|
140
|
+
*
|
|
141
|
+
* If we resolved at `.references()` call time, `categories` would TDZ-fail
|
|
142
|
+
* inside its own initializer. Storing the thunk and resolving on read
|
|
143
|
+
* (extract / render / emit) defers until after the const binding lands.
|
|
144
|
+
*/
|
|
145
|
+
interface FkSpec {
|
|
146
|
+
thunk: () => ColumnRef;
|
|
147
|
+
onDelete: FkAction;
|
|
148
|
+
onUpdate: FkAction;
|
|
149
|
+
/**
|
|
150
|
+
* The constraint's name in the database.
|
|
151
|
+
*
|
|
152
|
+
* Omitted for schemas written by hand — the name is then derived as
|
|
153
|
+
* `<table>_<column>_fk`. It is set when the schema was generated by
|
|
154
|
+
* `kick db introspect`, because a database names its constraints itself:
|
|
155
|
+
* Postgres' own default is `<table>_<column>_fkey`, and a DBA may have
|
|
156
|
+
* chosen anything. Dropping the real name would make the next diff want to
|
|
157
|
+
* rename every foreign key in the schema.
|
|
158
|
+
*/
|
|
159
|
+
name?: string;
|
|
160
|
+
}
|
|
161
|
+
interface ColumnState {
|
|
162
|
+
type: string;
|
|
163
|
+
nullable: boolean;
|
|
164
|
+
default: string | null;
|
|
165
|
+
primaryKey: boolean;
|
|
166
|
+
unique: boolean;
|
|
167
|
+
references: FkSpec | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Type-only brand attached to a column when it's auto-assigned by the
|
|
171
|
+
* database (serial / bigserial / smallserial), has a runtime default
|
|
172
|
+
* (`.default(...)`), or carries an expression default
|
|
173
|
+
* (`uuid().defaultRandom()`, `timestamp().defaultNow()`). `SchemaToTypes<S>`
|
|
174
|
+
* reads this marker and wraps the column type in Kysely's `Generated<T>` so
|
|
175
|
+
* adopters can omit the column on insert.
|
|
176
|
+
*
|
|
177
|
+
* Runtime is a no-op — the symbol never reaches a value.
|
|
178
|
+
*/
|
|
179
|
+
declare const KICK_GENERATED: unique symbol;
|
|
180
|
+
type GeneratedBrand = {
|
|
181
|
+
readonly [KICK_GENERATED]?: true;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Type-only brand attached to a column when `.notNull()` or `.primaryKey()`
|
|
185
|
+
* is called. `SchemaToTypes<S>` reads this brand to decide whether the
|
|
186
|
+
* column type is `T` (NOT NULL) or `T | null` (default nullable).
|
|
187
|
+
*
|
|
188
|
+
* Why a brand instead of a class generic: chained methods (notNull,
|
|
189
|
+
* primaryKey) can return `this & NotNullBrand` to narrow nullability while
|
|
190
|
+
* preserving the subclass identity — so `uuid().primaryKey().defaultRandom()`
|
|
191
|
+
* still resolves `defaultRandom()` on `UuidBuilder`. A class generic
|
|
192
|
+
* `<TNullable>` would collapse the subclass back to the parent.
|
|
193
|
+
*/
|
|
194
|
+
declare const KICK_NOT_NULL: unique symbol;
|
|
195
|
+
type NotNullBrand = {
|
|
196
|
+
readonly [KICK_NOT_NULL]?: true;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Re-attach the nullability / generated brands after a transform that
|
|
200
|
+
* must return a *new* builder type (e.g. `.array()` widening `T` to
|
|
201
|
+
* `T[]`). Without this, `integer().notNull().array()` silently dropped
|
|
202
|
+
* `NotNullBrand` and the row type regressed to `number[] | null`.
|
|
203
|
+
*
|
|
204
|
+
* Uses the same `extends` checks as `SchemaToTypes` (client/schema-types.ts)
|
|
205
|
+
* so detection stays consistent in both directions.
|
|
206
|
+
*/
|
|
207
|
+
type PreserveBrands<Self, Out> = Out & (Self extends NotNullBrand ? NotNullBrand : unknown) & (Self extends GeneratedBrand ? GeneratedBrand : unknown);
|
|
208
|
+
/**
|
|
209
|
+
* Phantom-typed column builder. The `T` generic carries the column's TS
|
|
210
|
+
* value type (number / string / Date / etc.); nullability is tracked via
|
|
211
|
+
* the `NotNullBrand` intersection rather than a class generic so chain
|
|
212
|
+
* methods preserve subclass identity.
|
|
213
|
+
*
|
|
214
|
+
* Both `T` and the brand are erased at runtime; they exist purely so
|
|
215
|
+
* `SchemaToTypes<S>` can pull them out per column.
|
|
216
|
+
*/
|
|
217
|
+
declare class ColumnBuilder<T = unknown> {
|
|
218
|
+
readonly __t?: T;
|
|
219
|
+
protected state: ColumnState;
|
|
220
|
+
constructor(type: string, defaults?: Partial<ColumnState>);
|
|
221
|
+
notNull(): this & NotNullBrand;
|
|
222
|
+
primaryKey(): this & NotNullBrand;
|
|
223
|
+
unique(): this;
|
|
224
|
+
array(): PreserveBrands<this, ColumnBuilder<T[]>>;
|
|
225
|
+
references(target: () => ColumnRef, opts?: {
|
|
226
|
+
onDelete?: FkAction;
|
|
227
|
+
onUpdate?: FkAction;
|
|
228
|
+
name?: string;
|
|
229
|
+
}): this;
|
|
230
|
+
/**
|
|
231
|
+
* Mark the column as having a runtime / DB-assigned default. The
|
|
232
|
+
* `GeneratedBrand` flows into `SchemaToTypes<S>` so the column wraps
|
|
233
|
+
* in `Generated<T>` — adopters can `INSERT` without specifying it.
|
|
234
|
+
*
|
|
235
|
+
* Accepts the natural literal for the column type — `boolean().default(false)`,
|
|
236
|
+
* `integer().default(0)`, `varchar().default('active')`. Non-string
|
|
237
|
+
* literals are normalised to their SQL-literal text so the snapshot
|
|
238
|
+
* (`ColumnSnapshot.default: string | null`) and migration emitter stay
|
|
239
|
+
* string-only. For a quoted string default the text is the value
|
|
240
|
+
* itself (`'active'`); booleans/numbers emit bare (`false`, `0`).
|
|
241
|
+
*/
|
|
242
|
+
default(value: string | number | boolean): this & GeneratedBrand;
|
|
243
|
+
toJSON(name: string): ColumnSnapshot;
|
|
244
|
+
__state(): Readonly<ColumnState>;
|
|
245
|
+
}
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/dsl/constraints.d.ts
|
|
248
|
+
interface IndexDecl {
|
|
249
|
+
name: string;
|
|
250
|
+
columns: string[];
|
|
251
|
+
unique: boolean;
|
|
252
|
+
}
|
|
253
|
+
interface ColRef {
|
|
254
|
+
__name: string;
|
|
255
|
+
}
|
|
256
|
+
declare function index(name: string): {
|
|
257
|
+
on(...cols: ColRef[]): IndexDecl;
|
|
258
|
+
};
|
|
259
|
+
declare function unique(name: string): {
|
|
260
|
+
on(...cols: ColRef[]): IndexDecl;
|
|
261
|
+
};
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/dsl/table.d.ts
|
|
264
|
+
interface TableDecl<TName extends string = string, C extends Record<string, ColumnBuilder> = Record<string, ColumnBuilder>, TSchema extends string | undefined = string | undefined> {
|
|
265
|
+
__isTable: true;
|
|
266
|
+
__name: TName;
|
|
267
|
+
__columns: C;
|
|
268
|
+
__indexes: IndexDecl[];
|
|
269
|
+
/**
|
|
270
|
+
* Named SQL schema this table lives in, from `pgSchema('x').table(...)`.
|
|
271
|
+
* `undefined` means the connection's default search_path (`public` on PG),
|
|
272
|
+
* which is every table declared through the bare `table()` factory.
|
|
273
|
+
*
|
|
274
|
+
* PostgreSQL only — `assertSchemasSupported()` rejects a declared schema
|
|
275
|
+
* on MySQL/SQLite at snapshot time rather than emitting subtly wrong DDL.
|
|
276
|
+
*/
|
|
277
|
+
__schema?: TSchema;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Fully-qualified name used as the snapshot key, the Kysely table key, and
|
|
281
|
+
* the emitted identifier. `quoteIdent` splits on `.`, so `billing.invoices`
|
|
282
|
+
* renders as `"billing"."invoices"` with no further work.
|
|
283
|
+
*
|
|
284
|
+
* Unqualified tables keep their bare name, so every pre-schema snapshot,
|
|
285
|
+
* migration hash, and `KickDbSchema` key is byte-identical to before.
|
|
286
|
+
*/
|
|
287
|
+
type QualifiedName<TName extends string, TSchema extends string | undefined> = TSchema extends string ? `${TSchema}.${TName}` : TName;
|
|
288
|
+
/** Runtime counterpart of {@link QualifiedName}. */
|
|
289
|
+
declare function qualifiedTableName(decl: {
|
|
290
|
+
__name: string;
|
|
291
|
+
__schema?: string | undefined;
|
|
292
|
+
}): string;
|
|
293
|
+
type TableRefs<TName extends string, C extends Record<string, ColumnBuilder>, TSchema extends string | undefined = undefined> = TableDecl<TName, C, TSchema> & { [K in keyof C]: ColumnRef; };
|
|
294
|
+
type ConstraintBuilder<C extends Record<string, ColumnBuilder>> = (refs: { [K in keyof C]: ColumnRef; }) => Record<string, IndexDecl>;
|
|
295
|
+
/**
|
|
296
|
+
* Declare a typed table. The `TName extends string` generic narrows to the
|
|
297
|
+
* literal table name so `SchemaToTypes<S>` can index by it without losing
|
|
298
|
+
* the constant — `table('users', …)` widens to `TableDecl<'users', …>`,
|
|
299
|
+
* not `TableDecl<string, …>`.
|
|
300
|
+
*/
|
|
301
|
+
declare function table<TName extends string, C extends Record<string, ColumnBuilder>>(name: TName, columns: C, constraints?: ConstraintBuilder<C>): TableRefs<TName, C>;
|
|
302
|
+
/**
|
|
303
|
+
* Shared table constructor. `table()` passes `schema: undefined`;
|
|
304
|
+
* `pgSchema('x').table()` passes the schema name through.
|
|
305
|
+
*/
|
|
306
|
+
declare function buildTable<TName extends string, C extends Record<string, ColumnBuilder>, TSchema extends string | undefined>(name: TName, columns: C, constraints: ConstraintBuilder<C> | undefined, schema: TSchema): TableRefs<TName, C, TSchema>;
|
|
307
|
+
//#endregion
|
|
308
|
+
export { IndexSnapshot as C, TableSnapshot as E, ForeignKeySnapshot as S, SchemaSnapshot as T, CheckSnapshot as _, table as a, EnumSnapshot as b, unique as c, ColumnState as d, FkSpec as f, NotNullBrand as g, KICK_NOT_NULL as h, qualifiedTableName as i, ColumnBuilder as l, KICK_GENERATED as m, TableDecl as n, IndexDecl as o, GeneratedBrand as p, buildTable as r, index as s, QualifiedName as t, ColumnRef as u, ColumnSnapshot as v, RelationSnapshot as w, FkAction as x, Dialect as y };
|
|
309
|
+
//# sourceMappingURL=table-Bl5SbKRg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-Bl5SbKRg.d.mts","names":[],"sources":["../src/snapshot/types.ts","../src/dsl/columns/types.ts","../src/dsl/constraints.ts","../src/dsl/table.ts"],"mappings":";;KAAY;KAEA;UAEK;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,UAAU;EACV,UAAU;;UAGK;EACf;EACA;;UAGe;;;;;;EAMf;;;;;;EAMA;EACA,SAAS,eAAe;EACxB,SAAS;EACT,aAAa;EACb,QAAQ;;;;;;;UAQO;EACf;;EAEA;;;;;;;;;;;;;;UAee;EACf;;EAEA;;EAEA;;EAEA;;;;;EAKA;;UAGe;EACf;EACA,SAAS;;;;;;;;EAQT,QAAQ,eAAe;;;;;;EAMvB;;EAEA,QAAQ,eAAe;;;;;;;EAOvB,YAAY,eAAe,eAAe;;;;;;;;;;;;;;;;;;UClG3B;EACf;EACA;EACA,WAAW;EACX,eAAe,WAAW;;;;;;;;;;;;;;;UAgBX;EACf,aAAa;EACb,UAAU;EACV,UAAU;;;;;;;;;;;EAWV;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA,YAAY;;;;;;;;;;;;cAaD;KACD;YAA6B;;;;;;;;;;;;;cAa5B;KACD;YAA2B;;;;;;;;;;;KAW3B,eAAe,MAAM,OAAO,OACrC,aAAa,eAAe,2BAC5B,aAAa,iBAAiB;;;;;;;;;;cAWpB,cAAc;WAGR,MAAM;YAEb,OAAO;EAEjB,YAAY,cAAc,WAAU,QAAQ;EAW5C,kBAAkB;EAKlB,qBAAqB;EAMrB;EAKA,SAAS,qBAAqB,cAAc;EAK5C,WACE,cAAc,WACd;IAAQ,WAAW;IAAU,WAAW;IAAU;;;;;;;;;;;;;;EA4BpD,QAAQ,0CAA0C;EAKlD,OAAO,eAAe;EAWtB,WAAW,SAAS;;;;UCpML;EACf;EACA;EACA;;UAGQ;EACR;;iBAGc,MAAM;EAElB,MAAE,MAAU,WAAW;;iBAMX,OAAO;EAEnB,MAAE,MAAU,WAAW;;;;UCfV,UACf,+BACA,UAAU,eAAe,iBAAiB,eAAe,gBACzD;EAEA;EACA,QAAQ;EACR,WAAW;EACX,WAAW;;;;;;;;;EASX,WAAW;;;;;;;;;;KAWD,cACV,sBACA,sCACE,4BAA4B,WAAW,UAAU;;iBAGrC,mBAAmB;EACjC;EACA;;KAKG,UACH,sBACA,UAAU,eAAe,gBACzB,kDACE,UAAU,OAAO,GAAG,cACrB,WAAW,IAAI;KAGb,kBAAkB,UAAU,eAAe,mBAAmB,SAChE,WAAW,IAAI,iBACZ,eAAe;;;;;;;iBAQL,MAAM,sBAAsB,UAAU,eAAe,gBACnE,MAAM,OACN,SAAS,GACT,cAAc,kBAAkB,KAC/B,UAAU,OAAO;;;;;iBAQJ,WACd,sBACA,UAAU,eAAe,gBACzB,oCAEA,MAAM,OACN,SAAS,GACT,aAAa,kBAAkB,gBAC/B,QAAQ,UACP,UAAU,OAAO,GAAG"}
|
|
@@ -127,8 +127,7 @@ interface KickDbRelationsRegister {}
|
|
|
127
127
|
*
|
|
128
128
|
* `relationName` (optional) is the pairing tag from
|
|
129
129
|
* `relations()`'s helpers. When set, the resolver uses it to pair
|
|
130
|
-
* `one` + `many` declarations across multi-FK schemas.
|
|
131
|
-
* docs/db/spec-relation-name.md (M4.B).
|
|
130
|
+
* `one` + `many` declarations across multi-FK schemas.
|
|
132
131
|
*/
|
|
133
132
|
interface RelationMapEntry {
|
|
134
133
|
kind: 'one' | 'many';
|
|
@@ -201,7 +200,7 @@ interface FindManyOptions<DB = RegisteredDB, Table extends keyof DB & string = k
|
|
|
201
200
|
* Bind to `RequestContext.signal` from kickjs-http to short-circuit
|
|
202
201
|
* the query when the client disconnects or the request times out.
|
|
203
202
|
*
|
|
204
|
-
*
|
|
203
|
+
* Per-relation
|
|
205
204
|
* `signal` on a `with` value is intentionally not supported;
|
|
206
205
|
* nested LATERAL/correlated subqueries inherit the parent signal.
|
|
207
206
|
*/
|
|
@@ -444,4 +443,4 @@ interface CreateDbClientOptions<TSchema, _DB = unknown> {
|
|
|
444
443
|
}
|
|
445
444
|
//#endregion
|
|
446
445
|
export { ModelExtensions as C, ExtensionDefinition as S, TableRelations as _, QueryErrorEvent as a, RegisteredDB as b, TransactionEvent as c, FindManyRow as d, KickDbRelationsRegister as f, TableQueryNamespace as g, RelationMapEntry as h, KickDbClientEvents as i, TransactionRollbackEvent as l, RegisteredRelations as m, CreateDbClientOptions as n, QueryEvent as o, QueryNamespace as p, KickDbClient as r, SlowQueryEvent as s, BeforeQueryEvent as t, FindManyOptions as u, WithClause as v, ExtendedClient as x, KickDbRegister as y };
|
|
447
|
-
//# sourceMappingURL=types-
|
|
446
|
+
//# sourceMappingURL=types-DtvYnaXL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DtvYnaXL.d.mts","names":[],"sources":["../src/extend/types.ts","../src/client/register.ts","../src/query/types.ts","../src/client/types.ts"],"mappings":";;;;;;;;;;KA2CY,gBAAgB,SACzB,eAAe,eAAe,mBAAmB;;;;;;;UASnC,gBAAgB;;EAE/B,OAAO,QAAQ,aAAa;;EAE5B,UAAU,KAAK;;;;;;KAOL,iBAAiB,SAC1B,eAAe,eAAe,eAAe,gBAAgB,GAAG;;UAIlD,oBAAoB;EACnC,QAAQ,gBAAgB;EACxB,SAAS,iBAAiB;;;;;;;;;;;;;;;KAgBhB,cAAc,IAAI,QAC3B,WAAW,KAAK,gBAAgB,IAAI,GAAG,KAAK,eAAe,EAAE,MAAM,GAAG;;KAIpE,eAAe,OAClB,YAAY;EAAiB,UAAU;QAEhC,WAAW,MAAM,IAAI;EAAa,UAAU,qBAAqB;IAAQ;;;;;;KAUtE,eAAe,IAAI,UAAU,oBAAoB,OAAO,aAClE,oBAAoB,iBAAiB,MAAM,cAAc,IAAI,YAAY,gBAAgB,SAExF,WAAW,Y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,sBAAsB,SAAS;;EAE9C,QAAQ;;EAER,SAAS;;;;;;;EAOT;;;;;;;EAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BA,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCjD,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forinda/kickjs-db",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "KickJS-native ORM — code-first schema, reversible migrations, multi-dialect SQL builder",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kickjs",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"import": "./dist/mysql.mjs",
|
|
38
38
|
"types": "./dist/mysql.d.mts"
|
|
39
39
|
},
|
|
40
|
+
"./schema": {
|
|
41
|
+
"import": "./dist/schema.mjs",
|
|
42
|
+
"types": "./dist/schema.d.mts"
|
|
43
|
+
},
|
|
40
44
|
"./cli": {
|
|
41
45
|
"import": "./dist/cli.mjs",
|
|
42
46
|
"types": "./dist/cli.d.mts"
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
"dependencies": {
|
|
57
61
|
"commander": "^15.0.0",
|
|
58
62
|
"jiti": "^2.4.2",
|
|
59
|
-
"kysely": "0.29.
|
|
63
|
+
"kysely": "0.29.6",
|
|
60
64
|
"@forinda/kickjs-cli-kit": "0.1.2"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
|
@@ -82,16 +86,17 @@
|
|
|
82
86
|
},
|
|
83
87
|
"devDependencies": {
|
|
84
88
|
"@testcontainers/postgresql": "^12.1.0",
|
|
85
|
-
"@types/better-sqlite3": "^
|
|
86
|
-
"@types/node": "^26.2
|
|
87
|
-
"@types/pg": "^8.
|
|
89
|
+
"@types/better-sqlite3": "^9.6.0",
|
|
90
|
+
"@types/node": "^26.6.2",
|
|
91
|
+
"@types/pg": "^8.23.1",
|
|
88
92
|
"better-sqlite3": "^13.0.3",
|
|
89
|
-
"kysely": "^0.29.
|
|
90
|
-
"mysql2": "^3.
|
|
93
|
+
"kysely": "^0.29.6",
|
|
94
|
+
"mysql2": "^3.24.4",
|
|
91
95
|
"pg": "^8.23.0",
|
|
92
96
|
"typescript": "^7.0.2",
|
|
93
|
-
"@forinda/kickjs": "7.
|
|
94
|
-
"@forinda/kickjs-devtools-kit": "7.0.
|
|
97
|
+
"@forinda/kickjs": "8.7.0",
|
|
98
|
+
"@forinda/kickjs-devtools-kit": "7.0.2",
|
|
99
|
+
"@forinda/kickjs-schema": "0.2.0"
|
|
95
100
|
},
|
|
96
101
|
"publishConfig": {
|
|
97
102
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-Ci5DXgUh.d.mts","names":[],"sources":["../src/snapshot/types.ts","../src/snapshot/extract.ts","../src/snapshot/render.ts","../src/diff/types.ts","../src/diff/engine.ts","../src/diff/invert.ts","../src/errors.ts","../src/diff/composite-detect.ts","../src/migrate/errors.ts","../src/migrate/enum-drop-gate.ts","../src/migrate/journal.ts","../src/migrate/adapter.ts","../src/migrate/schema.ts","../src/migrate/memory-adapter.ts","../src/migrate/introspect-types.ts","../src/migrate/introspect-pg.ts","../src/migrate/introspect-sqlite.ts","../src/migrate/introspect-mysql.ts","../src/migrate/drift.ts","../src/adapter.ts","../src/tokens.ts","../src/dsl/columns/types.ts","../src/dsl/constraints.ts","../src/dsl/table.ts","../src/client/schema-types.ts","../src/client/create.ts","../src/client/plugins.ts","../src/migrate/runner.ts","../src/migrate/review.ts","../src/emit/pg.ts","../src/emit/sqlite.ts","../src/emit/mysql.ts","../src/cli/config.ts","../src/cli/generate.ts","../src/dsl/columns/builders.ts","../src/dsl/relations.ts","../src/custom-type.ts","../src/query/relations.ts","../src/query/schema-relations-types.ts","../src/query/errors.ts","../src/query/like.ts","../src/dialect-marker.ts"],"mappings":";;;;;;KAAY;KAEA;UAEK;EACf;EACA;EACA;EAC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