This project is a PostgreSQL client library and SQL query builder for JavaScript and TypeScript. It provides a low-level database driver and connection manager to handle database sessions, along with a logical replication client for monitoring real-time changes.
The library distinguishes itself with a high-performance bulk data streamer that utilizes the database copy command for importing and exporting large datasets. It also implements a logical replication protocol to facilitate real-time database synchronization through change subscriptions and channel-based notifications.
The toolset covers broad capability areas including dynamic query composition using parameterized templates, transaction management with automatic commit and rollback, and connection pool management with support for failover hosts. It further includes utilities for custom data type serialization, result set streaming via cursors, and protocol-level query cancellation.