o2sql-pg

JSON →
library 1.0.11 ·javascript
verified Jun 5, 2026

o2sql-pg is a ready-to-use tool to have o2sql (a SQL query builder) working with pg (node-postgres). It provides an O2sqlPg factory that creates an o2sql instance configured with a PostgreSQL connection pool. It supports building and executing SELECT/INSERT/UPDATE/DELETE queries using the o2sql fluent API, with support for nested group columns, transactions, and direct pg queries. Current stable version is 1.0.11. It wraps the o2sql and pg libraries, offering a convenient integration layer. Key differentiator: combines o2sql's query builder with pg's connection management, handling pool creation internally for simplicity.