@xemahq/database-driver-postgres
v0.2.9
Published
PostgreSQL driver for org-managed databases.
Readme
@xemahq/database-driver-postgres
PostgreSQL driver for org-managed databases
Overview
The PostgreSQL driver for org-managed databases. It provisions databases,
ensures and drops per-org schemas with read-write and read-only roles, and
mints short-lived connection grants. It also ships a provisioner pool for
managing the underlying admin connections. Its input and result types come
from @xemahq/kernel-contracts/org-database.
When to use it
- Use it to provision and manage org-scoped PostgreSQL databases.
Installation
pnpm add @xemahq/database-driver-postgresUsage
import { PostgresDatabaseDriver } from '@xemahq/database-driver-postgres';
const driver = new PostgresDatabaseDriver(provisionerPool);
await driver.provision({ orgId, databaseName });License
Apache-2.0 © Xema — xema.dev
