stratal-zenstack-plugin
@stratal/zenstack-plugin
ZenStack plugin for Stratal that enables multi-connection database support through schema slicing and connection-specific migrations. It splits a single .zmodel schema into per-connection schemas based on the @@connection attribute.
Plugin Setup
In your .zmodel file:
plugin stratal {
provider = '@stratal/zenstack-plugin'
output = './zenstack'
default = 'main'
}
model User {
id String @id @default(cuid())
@@connection('main')
}
More from strataljs/stratal
stratal
Build Cloudflare Workers applications with the Stratal framework. Use when code imports from 'stratal' or '@stratal/*', when creating modules, controllers, services, routes, queue consumers, cron jobs, or CLI commands, or when user mentions Stratal, asks to 'create a module', 'add an endpoint', 'set up auth', 'configure database', 'add error handling', 'set up Inertia', or 'run quarry'. Covers DI, routing with OpenAPI, error handling, i18n, testing, auth, RBAC, Inertia.js SSR, and MCP server. Do NOT use for generic Hono apps, plain Cloudflare Workers, or NestJS.
20stratal-framework
>-
7stratal-testing
>-
6stratal-incremental-adoption
>-
6stratal-seeders
>-
5