@forinda/kickjs-db 8.11.2 → 8.12.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/{adapter-BlQK8hnm.d.mts → adapter-o2we9YIw.d.mts} +2 -2
- package/dist/{adapter-BlQK8hnm.d.mts.map → adapter-o2we9YIw.d.mts.map} +1 -1
- package/dist/cli.d.mts +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{create-B1cXCImA.mjs → create-CWQcQNgu.mjs} +3 -3
- package/dist/create-CWQcQNgu.mjs.map +1 -0
- package/dist/custom-type-ZuO--c_x.mjs +12 -0
- package/dist/custom-type-ZuO--c_x.mjs.map +1 -0
- package/dist/devtools-events.d.mts +1 -1
- package/dist/devtools-events.mjs +1 -1
- package/dist/{index-CgxPt0RM.d.mts → index-BACCTsy5.d.mts} +122 -9
- package/dist/{index-CgxPt0RM.d.mts.map → index-BACCTsy5.d.mts.map} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +2 -2
- package/dist/mysql.d.mts +2 -2
- package/dist/mysql.mjs +2 -2
- package/dist/{pg-DDrv2Nj1.mjs → pg-DV5SG4cf.mjs} +3 -3
- package/dist/pg-DV5SG4cf.mjs.map +1 -0
- package/dist/pg.d.mts +19 -5
- package/dist/pg.d.mts.map +1 -1
- package/dist/pg.mjs +2 -2
- package/dist/pglite.d.mts +1 -1
- package/dist/pglite.mjs +1 -1
- package/dist/{schema-Bb_HCpN5.d.mts → schema-jLdsVhUe.d.mts} +3 -3
- package/dist/{schema-Bb_HCpN5.d.mts.map → schema-jLdsVhUe.d.mts.map} +1 -1
- package/dist/{schema-types-wgjWxE6P.d.mts → schema-types-CdU4u-Ow.d.mts} +3 -3
- package/dist/{schema-types-wgjWxE6P.d.mts.map → schema-types-CdU4u-Ow.d.mts.map} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.mjs +2 -2
- package/dist/{split-statements-BXJkTF5e.mjs → split-statements-lMBXme3t.mjs} +2 -2
- package/dist/{split-statements-BXJkTF5e.mjs.map → split-statements-lMBXme3t.mjs.map} +1 -1
- package/dist/sqlite.d.mts +1 -1
- package/dist/sqlite.mjs +2 -2
- package/dist/{src-Bg9CeRAf.mjs → src-LEmnUV3S.mjs} +3 -3
- package/dist/{src-Bg9CeRAf.mjs.map → src-LEmnUV3S.mjs.map} +1 -1
- package/dist/{table-B_04Qz0C.d.mts → table-BGk08X3C.d.mts} +19 -3
- package/dist/table-BGk08X3C.d.mts.map +1 -0
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +2 -2
- package/dist/{types-DTWrY_KF.d.mts → types-8xZUYm43.d.mts} +2 -2
- package/dist/{types-DTWrY_KF.d.mts.map → types-8xZUYm43.d.mts.map} +1 -1
- package/dist/{types-DEVOTVGx.d.mts → types-DB_xyeQT.d.mts} +80 -7
- package/dist/types-DB_xyeQT.d.mts.map +1 -0
- package/package.json +4 -4
- package/dist/create-B1cXCImA.mjs.map +0 -1
- package/dist/custom-type-B7IYj_Yr.mjs +0 -12
- package/dist/custom-type-B7IYj_Yr.mjs.map +0 -1
- package/dist/pg-DDrv2Nj1.mjs.map +0 -1
- package/dist/table-B_04Qz0C.d.mts.map +0 -1
- package/dist/types-DEVOTVGx.d.mts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { S as PolicySnapshot, m as TypedColumnRefs, n as ColumnBuilder, t as CheckSelfRefs, w as RoleSnapshot, x as IndexSnapshot } from "./types-DB_xyeQT.mjs";
|
|
3
3
|
//#region src/dsl/rls.d.ts
|
|
4
4
|
/** A database role, for `policy().to(...)` — created by migrations unless `.existing()`. */
|
|
5
5
|
declare class RoleDecl {
|
|
@@ -93,9 +93,25 @@ declare class IndexDecl {
|
|
|
93
93
|
*/
|
|
94
94
|
concurrently(): this;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* An index, named, over one or more columns or expressions, in the table's
|
|
98
|
+
* constraints. Chain `.where()` for a partial index, `.using()` for a method.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* table('posts', { authorId: uuid(), createdAt: timestamp() }, (t) => ({
|
|
102
|
+
* byAuthor: index('posts_author_idx').on(t.authorId, t.createdAt),
|
|
103
|
+
* }))
|
|
104
|
+
*/
|
|
96
105
|
declare function index(name: string): {
|
|
97
106
|
on(...keys: IndexKey[]): IndexDecl;
|
|
98
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* A unique index, named, over one or more columns or expressions. With `.where()`, unique
|
|
110
|
+
* among the rows that match — e.g. live rows only.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* emailLive: unique('users_email_live').on(t.email).where('"deletedAt" IS NULL')
|
|
114
|
+
*/
|
|
99
115
|
declare function unique(name: string): {
|
|
100
116
|
on(...keys: IndexKey[]): IndexDecl;
|
|
101
117
|
};
|
|
@@ -203,7 +219,7 @@ type TableOptions<C extends Record<string, ColumnBuilder>> = ConstraintBuilder<C
|
|
|
203
219
|
* the constant — `table('users', …)` widens to `TableDecl<'users', …>`,
|
|
204
220
|
* not `TableDecl<string, …>`.
|
|
205
221
|
*/
|
|
206
|
-
declare function table<TName extends string, C extends Record<string, ColumnBuilder>>(name: TName, columns: C
|
|
222
|
+
declare function table<TName extends string, C extends Record<string, ColumnBuilder>>(name: TName, columns: C & CheckSelfRefs<C>, options?: TableOptions<C>): TableRefs<TName, C>;
|
|
207
223
|
/**
|
|
208
224
|
* Shared table constructor. `table()` passes `schema: undefined`;
|
|
209
225
|
* `pgSchema('x').table()` passes the schema name through.
|
|
@@ -218,4 +234,4 @@ declare function buildTable<TName extends string, C extends Record<string, Colum
|
|
|
218
234
|
declare function unwrapTable(value: unknown): TableDecl | undefined;
|
|
219
235
|
//#endregion
|
|
220
236
|
export { PolicyDecl as _, qualifiedTableName as a, pgRole as b, CheckDecl as c, PrimaryKeyDecl as d, TableConstraint as f, unique as g, primaryKey as h, buildTable as i, IndexDecl as l, index as m, TableDecl as n, table as o, check as p, TableOptions as r, unwrapTable as s, QualifiedName as t, IndexKey as u, RoleDecl as v, policy as x, isRole as y };
|
|
221
|
-
//# sourceMappingURL=table-
|
|
237
|
+
//# sourceMappingURL=table-BGk08X3C.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-BGk08X3C.d.mts","names":[],"sources":["../src/dsl/rls.ts","../src/dsl/constraints.ts","../src/dsl/table.ts"],"mappings":";;;;cAGa;WACF;WACA,QAAQ;;EAEjB;EAEA,YAAY,cAAc,UAAS,KAAK;;EAKxC;;;;;;;;;;;iBAec,OAAO,cAAc,UAAS,KAAK,wBAA6B;iBAIhE,OAAO,iBAAiB,SAAS;KAI5C,UAAU;;cAGF;WACF;WACA,UAAU;EAEnB,YAAY;;EAKZ,IAAI,SAAS;;EAMb,MAAM,OAAO,eAAe;;;;;EAS5B,GAAG;;EAMH,MAAM;;EAMN,UAAU;;;;;;;;;;;;;;;;;iBAqBI,OAAO,eAAe;;;UC9F5B;EACR;;;KAIU,WAAW;;;;;;;;;;cAeV;;WAEF,SAAS;EAElB,YAAY,cAAc,MAAM,YAAY;;EAK5C,MAAM;;EAMN,MAAM;;EAMN,WAAW,MAAM;;EAMjB,GAAG,KAAK,UAAU;;;;;;EAclB;;;;;;;;;;;iBAec,MAAM;EAElB,MAAE,MAAU,aAAa;;;;;;;;;iBAab,OAAO;EAEnB,MAAE,MAAU,aAAa;;;UAOZ;EACf;;EAEA;EACA;;;UAIe;EACf;EACA;;EAEA;;;KAIU,kBAAkB,YAAY,iBAAiB,YAAY;;;;;;;;;;iBAWvD,WAAW;EAEvB,MAAE,MAAU,WAAW;;;;;;iBAYX,MAAM,cAAc,qBAAqB;;;UCvIxC,UACf,+BACA,UAAU,eAAe,iBAAiB,eAAe,gBACzD;EAEA;EACA,QAAQ;EACR,WAAW;EACX,WAAW;;EAEX,eAAe;EACf,WAAW;;EAEX;;EAEA;IAAU;;EACV,aAAa;;;;;;;;;EASb,WAAW;;;;;WAKF,UAAU,SAAS;;;;;;;;;;KAWlB,cACV,sBACA,sCACE,4BAA4B,WAAW,UAAU;;iBAGrC,mBAAmB;EACjC;EACA;;KAKG,UACH,sBACA,UAAU,eAAe,gBACzB,kDACE,UAAU,OAAO,GAAG,WAAW,gBAAgB;KAE9C,kBAAkB,UAAU,eAAe,mBAC9C,MAAM,gBAAgB,OACnB,eAAe;;;;;KAMR,aAAa,UAAU,eAAe,kBAC9C,kBAAkB;EAEhB,cAAc,kBAAkB;EAChC;;;;;;;EAOA;IAAkB;;;;;;;;;iBASR,MAAM,sBAAsB,UAAU,eAAe,gBACnE,MAAM,OACN,SAAS,IAAI,cAAc,IAC3B,UAAU,aAAa,KACtB,UAAU,OAAO;;;;;iBAQJ,WACd,sBACA,UAAU,eAAe,gBACzB,oCAEA,MAAM,OACN,UAAU,GACV,SAAS,aAAa,gBACtB,QAAQ,UACP,UAAU,OAAO,GAAG;;;;;;;iBA6EP,YAAY,iBAAiB"}
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { r as KickDbClient, s as QueryEvent } from "./types-
|
|
3
|
-
import { t as SchemaToTypes } from "./schema-types-
|
|
2
|
+
import { r as KickDbClient, s as QueryEvent } from "./types-8xZUYm43.mjs";
|
|
3
|
+
import { t as SchemaToTypes } from "./schema-types-CdU4u-Ow.mjs";
|
|
4
4
|
//#region src/testing.d.ts
|
|
5
5
|
export interface TestDbOptions<S> {
|
|
6
6
|
schema: S;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs-db v8.
|
|
2
|
+
* @forinda/kickjs-db v8.12.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{O as emitPg,Q as extractSnapshot,Y as diff,d as migrateLatest,t as createDbClient,y as emitSqlite,z as EVENTS_ENABLED}from"./create-
|
|
11
|
+
import{O as emitPg,Q as extractSnapshot,Y as diff,d as migrateLatest,t as createDbClient,y as emitSqlite,z as EVENTS_ENABLED}from"./create-CWQcQNgu.mjs";import{randomBytes}from"node:crypto";async function createTestDb(opts){let{default:Database}=await import(`better-sqlite3`),{sqliteAdapter,sqliteDialect}=await import(`./sqlite.mjs`),database=new Database(`:memory:`);if(database.pragma(`foreign_keys = ON`),opts.migrationsDir)await migrateLatest({adapter:sqliteAdapter({database}),migrationsDir:opts.migrationsDir,requireReviewed:!1,driftCheck:`ignore`});else{let empty={version:1,dialect:`sqlite`,tables:{}},target=extractSnapshot(opts.schema,`sqlite`,{casing:opts.casing});database.exec(emitSqlite(diff(empty,target),{from:empty,to:target}))}return createDbClient({schema:opts.schema,dialect:sqliteDialect({database}),casing:opts.casing,events:!0})}async function createPgTestDb(opts){let{default:pg}=await import(`pg`),{pgAdapter,pgDialect}=await import(`./pg.mjs`),name=`kick_test_${randomBytes(6).toString(`hex`)}`,admin=new pg.Client({connectionString:opts.connectionString});await admin.connect();try{await admin.query(`CREATE DATABASE "${name}"`)}finally{await admin.end()}let url=new URL(opts.connectionString);url.pathname=`/${name}`;let connectionString=url.toString(),pool=new pg.Pool({connectionString});pool.on(`error`,()=>{}),pool.on(`connect`,client=>client.on(`error`,()=>{})),opts.migrationsDir?await migrateLatest({adapter:pgAdapter({pool}),migrationsDir:opts.migrationsDir,requireReviewed:!1,driftCheck:`ignore`}):await pool.query(emitPg(diff({version:1,dialect:`postgres`,tables:{}},extractSnapshot(opts.schema,`postgres`,{casing:opts.casing}))));let db=createDbClient({schema:opts.schema,dialect:pgDialect({pool}),casing:opts.casing,events:!0});return{db,connectionString,async drop(){await db.destroy();let admin=new pg.Client({connectionString:opts.connectionString});await admin.connect();try{await admin.query(`DROP DATABASE IF EXISTS "${name}" WITH (FORCE)`)}finally{await admin.end()}}}}const ROLLBACK=Symbol(`kickjs-db rolled back`);async function rolledBack(db,fn){let result;return await db.transaction(async()=>{throw result=await fn(),ROLLBACK}).catch(err=>{if(err!==ROLLBACK)throw err}),result}async function captureQueries(db,fn){if(db[EVENTS_ENABLED]===!1)throw Error("captureQueries: this client was created without events, so no query is reported and every count would be 0. Create it with `events: true`.");let queries=[],listener=event=>void queries.push(event);db.on(`query`,listener);try{return{result:await fn(),queries}}finally{db.off(`query`,listener)}}async function expectQueries(db,count,fn){let{result,queries}=await captureQueries(db,fn);if(queries.length!==count){let list=queries.map((q,i)=>` ${i+1}. ${q.sql}`).join(`
|
|
12
12
|
`);throw Error(`Expected ${count} quer${count===1?`y`:`ies`}, ran ${queries.length}:\n${list||` (none)`}`)}return result}export{captureQueries,createPgTestDb,createTestDb,expectQueries,rolledBack};
|
|
13
13
|
//# sourceMappingURL=testing.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { n as ColumnBuilder, s as GeneratedBrand, u as NotNullBrand } from "./types-DB_xyeQT.mjs";
|
|
3
3
|
import { CommonTableExpression, Dialect, Expression, ExpressionBuilder, Insertable, Kysely, KyselyPlugin, SelectQueryBuilder, SelectType, Selectable, SqlBool, UpdateObject } from "kysely";
|
|
4
4
|
//#region src/client/insert-many.d.ts
|
|
5
5
|
interface InsertManyOptions {
|
|
@@ -955,4 +955,4 @@ interface CreateDbClientOptions<TSchema, _DB = unknown> {
|
|
|
955
955
|
}
|
|
956
956
|
//#endregion
|
|
957
957
|
export { TenancyStrategy as A, WithClause as C, BypassOptions as D, BypassInfo as E, ExtensionDefinition as F, ModelExtensions as I, FindOrCreateOptions as L, defineTenancy as M, tenantKey as N, Tenancy as O, ExtendedClient as P, UpsertOptions as R, TableRelations as S, RegisteredDB as T, KickDbRelationsRegister as _, ManualTransaction as a, RelationMapEntry as b, ReadRoute as c, TransactionEvent as d, TransactionOptions as f, FindManyRow as g, FindManyOptions as h, KickDbClientEvents as i, TenantRequiredError as j, TenancyOptions as k, ReadRouter as l, TransactionRollbackEvent as m, CreateDbClientOptions as n, QueryErrorEvent as o, TransactionRetryEvent as p, KickDbClient as r, QueryEvent as s, BeforeQueryEvent as t, SlowQueryEvent as u, QueryNamespace as v, KickDbRegister as w, TableQueryNamespace as x, RegisteredRelations as y, InsertManyOptions as z };
|
|
958
|
-
//# sourceMappingURL=types-
|
|
958
|
+
//# sourceMappingURL=types-8xZUYm43.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-8xZUYm43.d.mts","names":["_$__upsert0.UpsertOptions","_$__insert_many0.InsertManyOptions","_$__upsert0.FindOrCreateOptions","_$___extend_types0.ExtensionDefinition","_$___extend_types0.ExtendedClient","KyselyDialect","_$___tenancy0.Tenancy"],"sources":["../src/client/insert-many.ts","../src/client/upsert.ts","../src/extend/types.ts","../src/tenancy.ts","../src/client/register.ts","../src/query/types.ts","../src/client/types.ts"],"mappings":";;;;UAiBiB;;;;;EAKf;;;;;;EAMA;;;;UCTe,cAAc,IAAI,gBAAgB,qBAAqB;;;;;EAKtE,QAAQ,WAAW,GAAG,MAAM,cAAc,WAAW,GAAG;;;;;;EAMxD,QAAQ,oBAAoB,GAAG;;;;;;;;EAQ/B,SAAS,oBAAoB,GAAG,eAAe,aAAa,IAAI;;;;;;EAMhE,SAAS,IAAI,kBAAkB,IAAI,OAAO,WAAW;;;KAIlD,YAAY,QAAQ,WAAW,iBAAiB,KAAK,GAAG,aAAa,WAAU;;KAG/E,WAAW,IAAI,gBAAgB,IAAI,KAAK,KAAK,WAAW,GAAG,KAAK,YAAY,MAC/E,QAAQ,WAAW,GAAG;KAEZ,oBACV,IACA,gBAAgB,aAChB,UAAU,QAAQ,WAAW,GAAG,OAAO,QAAQ,WAAW,GAAG;;EAG7D,OAAO,IAAI,OAAO,cAAc,SAAS,WAAW,GAAG;gBACzC,WAAW,IA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;;;;;;;;;EAUhE,YAAY,oBAAoB;;;;;;;;;;;;EAahC,iBAAiB,OAAO,KAAK,+BAA+B,QAAQ,kBAAkB;;WAG7E;;;;;WAMA,SAAS,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAyB/B,SAAS,UAAwDC,oBAAA,KAC/D,KAAK,IACyCC,eAAJ,IAAI;EAEhD,WAAW;;UAGI,sBAAsB,SAAS;;EAE9C,QAAQ;;;;;EAKR,SAASC;;;;;;EAMT;;;;;EAKA,UAXSC;;;;;;;EAkBT,UAAUD,mBAAyBA;;;;;;;;;;;EAWnC,QAAQ;;;;;;;EAOR;;;;;;;EAOA;;;;;;;EAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BA,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCjD,UAAU;;;;;;EAMV"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/snapshot/types.d.ts
|
|
3
3
|
type Dialect = 'postgres' | 'sqlite' | 'mysql';
|
|
4
|
-
|
|
4
|
+
/** The foreign-key actions, in the snapshot's spelling. */
|
|
5
|
+
declare const FK_ACTION_NAMES: readonly ['cascade', 'restrict', 'set_null', 'set_default', 'no_action'];
|
|
6
|
+
type FkAction = (typeof FK_ACTION_NAMES)[number];
|
|
5
7
|
interface ColumnSnapshot {
|
|
6
8
|
name: string;
|
|
7
9
|
type: string;
|
|
@@ -274,6 +276,27 @@ type TypedColumnRef<T> = ColumnRef & {
|
|
|
274
276
|
};
|
|
275
277
|
/** Typed refs for a column record — one per column. */
|
|
276
278
|
type TypedColumnRefs<C> = { [K in keyof C]: TypedColumnRef<C[K] extends ColumnBuilder<infer T> ? T : never>; };
|
|
279
|
+
declare const SELF_REF: unique symbol;
|
|
280
|
+
declare const SELF_REF_TO: unique symbol;
|
|
281
|
+
/** What `selfRef('id')` returns: a target thunk that names a column of this table. */
|
|
282
|
+
type SelfRef<K extends string> = (() => ColumnRef) & {
|
|
283
|
+
readonly [SELF_REF]: K;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* A column whose foreign key is `fk(builder, selfRef(K))`, checked by `table()`
|
|
287
|
+
* against its own columns. `.references()` can't carry it: a generic or
|
|
288
|
+
* overloaded `.references()` makes a plain thunk in a class field circular (TS7022).
|
|
289
|
+
*/
|
|
290
|
+
type SelfRefTo<K extends string> = {
|
|
291
|
+
readonly [SELF_REF_TO]: K;
|
|
292
|
+
};
|
|
293
|
+
type SelfRefTarget<B> = B extends SelfRefTo<infer K> ? K : never;
|
|
294
|
+
type ValueOf<B> = B extends ColumnBuilder<infer T> ? T : never;
|
|
295
|
+
/**
|
|
296
|
+
* `table()`'s check on its columns: each `selfRef(K)` names one of them, of a
|
|
297
|
+
* type this column can hold. A failing column reads as the reason.
|
|
298
|
+
*/
|
|
299
|
+
type CheckSelfRefs<C> = { [P in keyof C]: [SelfRefTarget<C[P]>] extends [never] ? C[P] : SelfRefTarget<C[P]> extends keyof C ? [ValueOf<C[SelfRefTarget<C[P]>]>] extends [ValueOf<C[P]>] ? C[P] : `selfRef('${SelfRefTarget<C[P]>}'): that column's type doesn't match this one` : `selfRef('${SelfRefTarget<C[P]>}'): this table has no such column`; };
|
|
277
300
|
interface FkSpec {
|
|
278
301
|
thunk: () => ColumnRef;
|
|
279
302
|
onDelete: FkAction;
|
|
@@ -369,7 +392,7 @@ type NotNullBrand = {
|
|
|
369
392
|
readonly [KICK_NOT_NULL]?: true;
|
|
370
393
|
};
|
|
371
394
|
/**
|
|
372
|
-
* Re-attach the nullability / generated brands after a transform that
|
|
395
|
+
* Re-attach the nullability / generated / selfRef brands after a transform that
|
|
373
396
|
* must return a *new* builder type (e.g. `.array()` widening `T` to
|
|
374
397
|
* `T[]`). Without this, `integer().notNull().array()` silently dropped
|
|
375
398
|
* `NotNullBrand` and the row type regressed to `number[] | null`.
|
|
@@ -377,7 +400,7 @@ type NotNullBrand = {
|
|
|
377
400
|
* Uses the same `extends` checks as `SchemaToTypes` (client/schema-types.ts)
|
|
378
401
|
* so detection stays consistent in both directions.
|
|
379
402
|
*/
|
|
380
|
-
type PreserveBrands<Self, Out> = Out & (Self extends NotNullBrand ? NotNullBrand : unknown) & (Self extends GeneratedBrand ? GeneratedBrand : unknown) & (Self extends GeneratedAlwaysBrand ? GeneratedAlwaysBrand : unknown);
|
|
403
|
+
type PreserveBrands<Self, Out> = Out & (Self extends NotNullBrand ? NotNullBrand : unknown) & (Self extends GeneratedBrand ? GeneratedBrand : unknown) & (Self extends GeneratedAlwaysBrand ? GeneratedAlwaysBrand : unknown) & (Self extends SelfRefTo<infer K> ? SelfRefTo<K> : unknown);
|
|
381
404
|
/**
|
|
382
405
|
* Phantom-typed column builder. The `T` generic carries the column's TS
|
|
383
406
|
* value type (number / string / Date / etc.); nullability is tracked via
|
|
@@ -391,10 +414,47 @@ declare class ColumnBuilder<T = unknown> {
|
|
|
391
414
|
readonly __t?: T;
|
|
392
415
|
protected state: ColumnState;
|
|
393
416
|
constructor(type: string, defaults?: Partial<ColumnState>);
|
|
417
|
+
/**
|
|
418
|
+
* `NOT NULL`: drops `| null` from the column's type.
|
|
419
|
+
*
|
|
420
|
+
* @example
|
|
421
|
+
* name: text().notNull()
|
|
422
|
+
*/
|
|
394
423
|
notNull(): this & NotNullBrand;
|
|
424
|
+
/**
|
|
425
|
+
* `PRIMARY KEY` (implies `NOT NULL`). For a key over several columns, use
|
|
426
|
+
* `primaryKey().on(...)` in the table's constraints instead.
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* id: uuid().primaryKey().defaultRandom()
|
|
430
|
+
*/
|
|
395
431
|
primaryKey(): this & NotNullBrand;
|
|
432
|
+
/**
|
|
433
|
+
* `UNIQUE` on this column alone. Partial or multi-column: `unique(name).on(...)`
|
|
434
|
+
* in the table's constraints.
|
|
435
|
+
*
|
|
436
|
+
* @example
|
|
437
|
+
* email: varchar(320).notNull().unique()
|
|
438
|
+
*/
|
|
396
439
|
unique(): this;
|
|
440
|
+
/**
|
|
441
|
+
* An array of this type (`text[]`), typed `T[]`.
|
|
442
|
+
*
|
|
443
|
+
* @example
|
|
444
|
+
* tags: text().array().notNull().default([])
|
|
445
|
+
*/
|
|
397
446
|
array(): PreserveBrands<this, ColumnBuilder<T[]>>;
|
|
447
|
+
/**
|
|
448
|
+
* A foreign key to another table's column. The target is a thunk, so tables
|
|
449
|
+
* can be declared in any order. For a column of the same table, use
|
|
450
|
+
* `selfRef('id')`; for two tables that point at each other, `link()`.
|
|
451
|
+
* Actions: `'cascade'`, `'restrict'`, `'set_null'`, `'set_default'`,
|
|
452
|
+
* `'no_action'` (the default). `name` overrides the derived constraint name.
|
|
453
|
+
*
|
|
454
|
+
* @example
|
|
455
|
+
* authorId: uuid().notNull().references(() => users.id, { onDelete: 'cascade' })
|
|
456
|
+
* parentId: uuid().references(selfRef('id'), { onDelete: 'set_null' })
|
|
457
|
+
*/
|
|
398
458
|
references(target: () => ColumnRef, opts?: {
|
|
399
459
|
onDelete?: FkAction;
|
|
400
460
|
onUpdate?: FkAction;
|
|
@@ -439,13 +499,26 @@ declare class ColumnBuilder<T = unknown> {
|
|
|
439
499
|
$onUpdate(fn: () => T): this;
|
|
440
500
|
/**
|
|
441
501
|
* Set this column to the current time on every update that doesn't set it
|
|
442
|
-
* itself
|
|
502
|
+
* itself, and on an upsert's update branch. Your own value wins. Raw `sql`
|
|
503
|
+
* updates don't maintain it.
|
|
504
|
+
*
|
|
505
|
+
* @example
|
|
506
|
+
* updatedAt: timestamp().notNull().defaultNow().onUpdateNow()
|
|
443
507
|
*/
|
|
444
508
|
onUpdateNow(): this;
|
|
445
509
|
/**
|
|
446
510
|
* Mark this column — a nullable timestamp — as the soft-delete marker:
|
|
447
511
|
* relational reads (`db.query`) skip rows where it's set, at every level,
|
|
448
|
-
* unless
|
|
512
|
+
* unless that level passes `withDeleted: true`. Soft-delete by setting it to
|
|
513
|
+
* the current time; restore by setting it back to `null`.
|
|
514
|
+
*
|
|
515
|
+
* The query builder (`selectFrom`) is plain SQL and still sees deleted rows:
|
|
516
|
+
* add `.where('deletedAt', 'is', null)` there yourself. No schema change.
|
|
517
|
+
*
|
|
518
|
+
* @example
|
|
519
|
+
* deletedAt: timestamp().softDelete()
|
|
520
|
+
* // delete: db.updateTable('docs').set({ deletedAt: new Date() }).where('id', '=', id)
|
|
521
|
+
* // include: db.query.docs.findMany({ withDeleted: true })
|
|
449
522
|
*/
|
|
450
523
|
softDelete(): this;
|
|
451
524
|
/**
|
|
@@ -482,5 +555,5 @@ declare class ColumnBuilder<T = unknown> {
|
|
|
482
555
|
__state(): Readonly<ColumnState>;
|
|
483
556
|
}
|
|
484
557
|
//#endregion
|
|
485
|
-
export {
|
|
486
|
-
//# sourceMappingURL=types-
|
|
558
|
+
export { RelationSnapshot as C, ViewSnapshot as D, TableSnapshot as E, PolicySnapshot as S, SchemaSnapshot as T, Dialect as _, FkSpec as a, ForeignKeySnapshot as b, KICK_GENERATED as c, SelfRef as d, SelfRefTo as f, ColumnSnapshot as g, CheckSnapshot as h, ColumnState as i, KICK_NOT_NULL as l, TypedColumnRefs as m, ColumnBuilder as n, GeneratedAlwaysBrand as o, TypedColumnRef as p, ColumnRef as r, GeneratedBrand as s, CheckSelfRefs as t, NotNullBrand as u, EnumSnapshot as v, RoleSnapshot as w, IndexSnapshot as x, FkAction as y };
|
|
559
|
+
//# sourceMappingURL=types-DB_xyeQT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DB_xyeQT.d.mts","names":[],"sources":["../src/snapshot/types.ts","../src/dsl/columns/types.ts"],"mappings":";;KAAY;;cAGC;KAOD,mBAAmB;UAEd;EACf;EACA;EACA;EACA;;EAEA;;;;;;EAMA;EACA;;EAEA;IAAc;IAAoB;;;EAElC;;EAEA;;;;;EAKA;;UAGe;EACf;;EAEA;EACA;;EAEA;;EAEA;;EAEA;;EAEA,YAAY;;EAEZ;;UAGe;EACf;EACA;EACA;EACA;EACA,UAAU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Aa;EACb,UAAU;EACV,UAAU;;;;;;;;;;;EAWV;;UAqBe;EACf;EACA;EACA;;EAEA;EACA;EACA;EACA,YAAY;;;;;;;EAOZ;EACA;IAAc;IAAoB;;EAClC;;;;;EAKA;;EAEA;;EAEA;;EAEA;IAAY;IAAkB;;;EAE9B;;EAEA;;;;;;;;;;;;cAaW;KACD;YAA6B;;;;;;;cAO5B;KACD;YAAmC;;;;;;;;;;;;;cAalC;KACD;YAA2B;;;;;;;;;;;KAW3B,eAAe,MAAM,OAAO,OACrC,aAAa,eAAe,2BAC5B,aAAa,iBAAiB,6BAC9B,aAAa,uBAAuB,mCACpC,aAAa,gBAAgB,KAAK,UAAU;;;;;;;;;;cAWlC,cAAc;WAGR,MAAM;YAEb,OAAO;EAEjB,YAAY,cAAc,WAAU,QAAQ;;;;;;;EAkB5C,kBAAkB;;;;;;;;EAYlB,qBAAqB;;;;;;;;EAarB;;;;;;;EAWA,SAAS,qBAAqB,cAAc;;;;;;;;;;;;EAgB5C,WACE,cAAc,WACd;IAAQ,WAAW;IAAU,WAAW;IAAU;;;;;;;;;;;;;;;;;EA4CpD,QAAQ,mCAAmC,WAAW;;;;;;;;EAsBtD,WAAW,4BAA4B;;;;;;;EAYvC,WAAW,UAAU,WAAW;;;;;;EAUhC,UAAU,UAAU;;;;;;;;;EAapB;;;;;;;;;;;;;;;EAmBA;;;;;;;;EAYA,kBACE,oBACA;IAAW;aACH;;;;;EASV,oCAAoC,eAAe;;EAOnD,uCAAuC,eAAe;;;;;EAUtD,QAAQ;;;;;;EAUR,QAAQ;;EAMR,aAAa;EAIb,OAAO,eAAe;EAgBtB,WAAW,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forinda/kickjs-db",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
4
|
"description": "KickJS-native ORM — code-first schema, reversible migrations, multi-dialect SQL builder",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kickjs",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"pg": "^8.23.1",
|
|
114
114
|
"pg-cursor": "^2.22.1",
|
|
115
115
|
"typescript": "^7.0.2",
|
|
116
|
-
"@forinda/kickjs": "10.
|
|
117
|
-
"@forinda/kickjs-
|
|
118
|
-
"@forinda/kickjs-
|
|
116
|
+
"@forinda/kickjs": "10.13.2",
|
|
117
|
+
"@forinda/kickjs-schema": "0.2.4",
|
|
118
|
+
"@forinda/kickjs-devtools-kit": "7.3.0"
|
|
119
119
|
},
|
|
120
120
|
"publishConfig": {
|
|
121
121
|
"access": "public"
|