@keelward/pg
v0.2.0
Published
Postgres driver for Keelward.
Maintainers
Readme
@keelward/pg
The Postgres dialect and driver for Keelward.
npm install keelward @keelward/pg pgimport { createClient } from 'keelward';
import { postgres } from '@keelward/pg';
import { schema } from './schema.js';
export const db = createClient({
schema,
driver: postgres({ connectionString: process.env.DATABASE_URL! }),
});The driver carries its own dialect, so choosing a driver chooses a store. It turns
Keelward's dialect-free plans into parameterised SQL, runs transactions on a pinned
connection, and parses int8 into bigint per pool rather than mutating
node-postgres's global parser table.
pg is a peer dependency: your application controls the version.
See the Keelward README for the full picture.
MIT
