PostgreSQL adapter for the Any-DB abstraction layer, version 2.3.0. Provides a uniform interface for PostgreSQL connections and queries that conform to the Any-DB API, allowing application code to be portable across different databases by swapping adapters. Relies on the pg.js driver and extends pg.Client and QueryStream for PostgreSQL-specific features. Note: the adapter is explicitly designed to be used as part of the any-db ecosystem and should not be used standalone; it requires the any-db package as a peer dependency.
npm install any-db-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a connection pool using the any-db-postgres adapter and runs a simple query.
Migrate to the 'pg' package directly and remove any-db dependency.
Use named import: import { createConnection } from 'any-db-postgres'Uninstall 'pg' if not needed, and install 'pg.js' as a dependency.
Update code to use promises: pool.query('SELECT 1').then(...).catch(...)npm install any-db
Use import { createConnection } from 'any-db-postgres'Provide { url: 'postgres://...' } in the pool options