postgres-fp

JSON →
library 1.4.1 ·javascript maintenance
verified Jun 5, 2026

A functional programming wrapper around the postgres npm module, providing curried functions for connecting, executing queries, and retrieving results. Current stable version 1.4.1 (last updated in 2021) with a low release cadence. Supports both callback-based (compatible with righto) and promise-based APIs. Key differentiator: offers a purely functional interface over pg, unlike traditional object-oriented drivers. Includes functions like connect, execute, getAll, getOne, insert, and close. Note: not actively maintained; consider using pg directly with a functional helper library.