@multitenant/drizzle
v0.1.0
Published
Reference wiring: Drizzle ORM + node-postgres + @multitenant/database (shared DB & per-tenant URL) — Phase 8.7
Readme
@multitenant/drizzle
Phase 8.7 — reference wiring for Drizzle ORM (drizzle-orm/node-postgres) + pg, integrated with @multitenant/database:
getOrCreateTenantNodePgPool— per-tenant DSN + boundedBoundedTenantDbResourceCache<Pool>createNodePgDrizzle— shared-DBPool→ Drizzle (with optional schema map)getTenantNodePgDrizzle— one-liner: resolve URL, cached pool,drizzle(pool, { schema })
Peers: drizzle-orm, pg.
Docs: drizzle-postgres.md
