Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# @toolctrl/db
|
||||
# @hivegrid/db
|
||||
|
||||
Database ownership package.
|
||||
|
||||
@@ -10,21 +10,21 @@ Current ownership:
|
||||
- Migrations: `prisma/migrations`
|
||||
- Generated client: `packages/db/generated/prisma/client`
|
||||
- Prisma 7 TypeScript entrypoints: `packages/db/generated/prisma/client/client.ts` and `packages/db/generated/prisma/client/browser.ts`
|
||||
- Server client API: `@toolctrl/db/client.server`
|
||||
- Server client API: `@hivegrid/db/client.server`
|
||||
|
||||
Use `getDbClient()` from `@toolctrl/db/client.server` for server-side Prisma client creation and development singleton reuse.
|
||||
Use `getDbClient()` from `@hivegrid/db/client.server` for server-side Prisma client creation and development singleton reuse.
|
||||
|
||||
Transaction helpers are available from `@toolctrl/db/transactions.server` and the root package export. `runDbTransaction(callback, client?)` wraps interactive Prisma transactions behind an injectable client, while `runDbTransactionBatch(operations, client?)` runs batch operations without forcing app imports.
|
||||
Transaction helpers are available from `@hivegrid/db/transactions.server` and the root package export. `runDbTransaction(callback, client?)` wraps interactive Prisma transactions behind an injectable client, while `runDbTransactionBatch(operations, client?)` runs batch operations without forcing app imports.
|
||||
|
||||
Seed helpers are available from `@toolctrl/db/seed.server` and the root package export. `runDbSeed({ nodeEnv, adminEmail, adminPassword, seedCredentials, seed, diagnostics })` runs exactly one caller-provided seed callback, rejects production runs that still use local default seed emails or the default `password`, emits `start` / `success` / `failure` diagnostics, and never includes password values in diagnostic events. Use `assertSafeSeedCredentials(options)` when a caller needs to perform the production credential guard separately.
|
||||
Seed helpers are available from `@hivegrid/db/seed.server` and the root package export. `runDbSeed({ nodeEnv, adminEmail, adminPassword, seedCredentials, seed, diagnostics })` runs exactly one caller-provided seed callback, rejects production runs that still use local default seed emails or the default `password`, emits `start` / `success` / `failure` diagnostics, and never includes password values in diagnostic events. Use `assertSafeSeedCredentials(options)` when a caller needs to perform the production credential guard separately.
|
||||
|
||||
Package scripts delegate to the current root Prisma config while keeping callers on the `@toolctrl/db` package:
|
||||
Package scripts delegate to the current root Prisma config while keeping callers on the `@hivegrid/db` package:
|
||||
|
||||
- `pnpm --filter @toolctrl/db prisma:generate`
|
||||
- `pnpm --filter @toolctrl/db prisma:migrate:deploy`
|
||||
- `pnpm --filter @toolctrl/db seed`
|
||||
- `pnpm --filter @toolctrl/db permissions:sync`
|
||||
- `pnpm --filter @toolctrl/db typecheck`
|
||||
- `pnpm --filter @hivegrid/db prisma:generate`
|
||||
- `pnpm --filter @hivegrid/db prisma:migrate:deploy`
|
||||
- `pnpm --filter @hivegrid/db seed`
|
||||
- `pnpm --filter @hivegrid/db permissions:sync`
|
||||
- `pnpm --filter @hivegrid/db typecheck`
|
||||
|
||||
For the non-E2E database CI status gate, see [Database CI runbook](../../docs/db-ci.md). The root `pnpm run verify:db-migrate-status` command checks Prisma migration status through this package boundary and requires a configured `DATABASE_URL` secret.
|
||||
|
||||
|
||||
Reference in new issue
Block a user