@beignet/provider-db-drizzle 0.0.23 → 0.0.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @beignet/provider-db-drizzle
2
2
 
3
+ ## 0.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f84b39: Add provider table metadata diagnostics, Drizzle operational schema exports, and `beignet db schema generate` for app-owned migration flows.
8
+
9
+ ## 0.0.24
10
+
3
11
  ## 0.0.23
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -97,6 +97,26 @@ export const todos = sqliteTable("todos", {
97
97
  export { todos } from "./todos";
98
98
  ```
99
99
 
100
+ If the app uses Beignet's Drizzle-backed operational ports for audit,
101
+ idempotency, or outbox, generate the provider-owned table exports into the app
102
+ schema:
103
+
104
+ ```bash
105
+ bun beignet db schema generate
106
+ ```
107
+
108
+ That writes `infra/db/schema/beignet.ts` and adds
109
+ `export * from "./beignet";` to `infra/db/schema/index.ts`. After that, run the
110
+ normal app-owned migration flow:
111
+
112
+ ```bash
113
+ bun beignet db generate
114
+ bun beignet db migrate
115
+ ```
116
+
117
+ Use `--tables audit,idempotency,outbox` to select a subset when adopting one
118
+ operational port at a time.
119
+
100
120
  ### 2. Configure Drizzle CLI (build-time)
101
121
 
102
122
  Create `drizzle.config.ts` in your app root for the Drizzle CLI:
@@ -1079,6 +1099,19 @@ All exports below come from `@beignet/provider-db-drizzle/sqlite`. The
1079
1099
  provider options (`pool`, and `mode` for MySQL), the `DbPort` escape hatch
1080
1100
  (`pool` instead of `client`), and the mutation error class names.
1081
1101
 
1102
+ ### Schema subpaths
1103
+
1104
+ Each backend also exports canonical Beignet operational table definitions:
1105
+
1106
+ - `@beignet/provider-db-drizzle/sqlite/schema`
1107
+ - `@beignet/provider-db-drizzle/postgres/schema`
1108
+ - `@beignet/provider-db-drizzle/mysql/schema`
1109
+
1110
+ Each schema subpath exports `auditLog`, `idempotencyRecords`, and
1111
+ `outboxMessages`. Prefer `beignet db schema generate` in apps so the selected
1112
+ exports are re-exported from your app schema index before Drizzle Kit generates
1113
+ migrations.
1114
+
1082
1115
  ### `DbPort<TSchema>`
1083
1116
 
1084
1117
  The port interface exposed on `ctx.ports.db`: