Alexandro.Net

PostgreSQL client / MIT

@stackline/pg

A maintained continuation of [email protected] with its public client, pool, protocol, parser, callback, promise, CommonJS, ESM, and deep-import contracts preserved.

npm install @stackline/pg

Keep existing imports with npm install pg@npm:@stackline/pg.

Release
1.0.0
Runtime
Node 16+
Formats
CommonJS + ESM
Baseline
pg 8.23.0
Audit
0 findings

01 / Quick start

Use the familiar client and pool APIs.

const { Pool } = require('@stackline/pg')

const pool = new Pool({
  connectionString: process.env.DATABASE_URL
})

const result = await pool.query(
  'select $1::text as message',
  ['hello']
)
await pool.end()

02 / Compatibility contract

Package provenance changes. Application behavior does not.

Queries and transactions. Clients, pools, callbacks, promises, notifications, SSL, SCRAM, custom parsers, and COPY extensions retain the upstream contract.

Module systems. CommonJS and ESM entry points are verified. Supported pg/lib/* deep imports remain exported.

Native driver. The historical lazy pg.native API remains available when the consumer explicitly installs pg-native.

03 / Production closure

Every runtime edge is exact and recursively reviewed.

04 / Migration

Choose the import identity.

Keep pg

npm install pg@npm:@stackline/pg

No application import changes are required.

Use the scoped name

npm install @stackline/pg

Import directly when explicit package provenance is preferred.

05 / Reference

Read the maintained contract.