@xemahq/database-driver-postgres
v0.2.0
Published
PostgreSQL DatabaseDriver implementation for org-managed databases.
Readme
@xemahq/database-driver-postgres
PostgreSQL driver for org-managed databases
Overview
A PostgreSQL implementation of the org-database driver contract. 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. Pairs with the shared org-database driver interface so consumers stay engine-agnostic.
When to use it
- Use it to provision and manage org-scoped PostgreSQL databases behind the shared driver contract.
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
