PostgreSQL driver for TSBean-ORM, based on the pg library. Current stable version is 3.0.2, released alongside tsbean-orm 3.0.0. This driver automatically handles identifier conversion from camelCase (TypeScript) to snake_case (PostgreSQL), supporting custom conversion or disabling entirely. It is designed exclusively for use with tsbean-orm as a peer dependency. The driver connects to PostgreSQL using the pg package and provides a DataSource via PostgreSQLDriver.createDataSource(). Release cadence follows tsbean-orm releases. Key differentiator: built-in identifier mapping between ORM and database naming conventions.
npm install tsbean-driver-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a PostgreSQL data source using connection parameters and sets it as the default data source for TSBean-ORM.
Replace new PostgreSQLDriver(options) with PostgreSQLDriver.createDataSource(options).
Use import statements. If you need CJS, stick to version 2.x or use dynamic import().
Rename 'disableIdentifierConversion' to 'disableAutoIdentifierConversion' in your data source configuration.
Set disableAutoIdentifierConversion: true in your data source config, or provide a customIdentifierConversion function.
Upgrade Node.js to version 16 or higher.
Change require('tsbean-driver-postgres') to import { PostgreSQLDriver } from 'tsbean-driver-postgres'.Run 'npm install tsbean-orm' alongside tsbean-driver-postgres.
Use PostgreSQLDriver.createDataSource(options) instead.
Check your network connection and hostname. For Docker, use 'host.docker.internal' for localhost.
No dependency data recorded yet.