@forinda/kickjs-db 5.2.0 → 5.2.2
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/README.md +1 -1
- package/dist/devtools-events.d.mts +1 -1
- package/dist/devtools-events.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +33 -2006
- package/dist/index.mjs.map +1 -1
- package/dist/pg.mjs +2 -45
- package/dist/pg.mjs.map +1 -1
- package/dist/types-Cxh6cDtw.mjs +12 -0
- package/dist/{types-DBmUL5LM.mjs.map → types-Cxh6cDtw.mjs.map} +1 -1
- package/dist/{types-snBo_IiR.d.mts → types-DlFKeljT.d.mts} +2 -2
- package/dist/{types-snBo_IiR.d.mts.map → types-DlFKeljT.d.mts.map} +1 -1
- package/package.json +3 -3
- package/dist/types-DBmUL5LM.mjs +0 -106
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> KickJS-native ORM — code-first schema, reversible migrations, multi-dialect SQL.
|
|
4
4
|
|
|
5
|
-
Phantom-typed column builders, `
|
|
5
|
+
Phantom-typed column builders, `SchemaToTypes<S>` for end-to-end row inference, `KickDbRegister` module augmentation, runtime lifecycle hooks (`query` / `queryError` / `slowQuery`), `customType` mapper, `pgEnum` with full migration pipeline, and `db.$extends({ model })` per-table methods.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
package/dist/devtools-events.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as QueryErrorEvent, c as TransactionEvent, d as RegisteredDB, f as ExtendedClient, i as KickDbClientEvents, l as TransactionRollbackEvent, m as ModelExtensions, n as CreateDbClientOptions, o as QueryEvent, p as ExtensionDefinition, r as KickDbClient, t as BeforeQueryEvent, u as KickDbRegister } from "./types-
|
|
2
|
+
import { a as QueryErrorEvent, c as TransactionEvent, d as RegisteredDB, f as ExtendedClient, i as KickDbClientEvents, l as TransactionRollbackEvent, m as ModelExtensions, n as CreateDbClientOptions, o as QueryEvent, p as ExtensionDefinition, r as KickDbClient, t as BeforeQueryEvent, u as KickDbRegister } from "./types-DlFKeljT.mjs";
|
|
3
3
|
import { _ as TableSnapshot, a as GeneratedBrand, c as NotNullBrand, d as Dialect, f as EnumSnapshot, g as SchemaSnapshot, h as IndexSnapshot, i as FkSpec, l as CheckSnapshot, m as ForeignKeySnapshot, n as ColumnRef, o as KICK_GENERATED, p as FkAction, r as ColumnState, s as KICK_NOT_NULL, t as ColumnBuilder, u as ColumnSnapshot } from "./types-Dc9RQGSf.mjs";
|
|
4
4
|
import * as _$_forinda_kickjs0 from "@forinda/kickjs";
|
|
5
5
|
import { InjectionToken } from "@forinda/kickjs";
|
|
@@ -324,7 +324,7 @@ interface KickDbAdapterConfig {
|
|
|
324
324
|
* `migrateLatest()` on boot (apply policy only). Pair with
|
|
325
325
|
* `DEVTOOLS_BUS` so the events surface in the DevTools panel:
|
|
326
326
|
*
|
|
327
|
-
* import { DEVTOOLS_BUS } from '@forinda/kickjs-devtools-kit/bus'
|
|
327
|
+
* import { DEVTOOLS_BUS } from '@forinda/kickjs-devtools-kit/bus/token'
|
|
328
328
|
* // Resolve only when devtools is actually wired — adopters who
|
|
329
329
|
* // skip @forinda/kickjs-devtools never register the token, and
|
|
330
330
|
* // resolve() throws on missing tokens.
|