A Kysely dialect for PostgreSQL that uses a single `pg.Client` connection instead of a connection pool. Version 0.1.14, actively maintained. Designed for serverless environments to avoid pool overhead, but the README advises using Kysely's built-in `PostgresDialect` with `max: 1` instead for better compatibility with libraries like Lucia. Tested against Kysely's own test suite for reliability.
npm install kysely-pg-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Kysely instance with PostgresClientDialect using a single Client connection.
Use Kysely's PostgresDialect with pool max: 1, or consider Kysely's built-in single-connection support.
Configure client directly; for custom connection setup, use Kysely's PostgresDialect with a custom pool.
Ensure your application does not require concurrent database connections.
Consider using Kysely's PostgresDialect with a pool to allow lazy connection creation.
Update to latest version.
npm install kysely-pg-client pg kysely
Ensure you import Client from 'pg' and call new Client({...}).Check database host, port, user, password, and database name.