{"library":"postgres-fp","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.4.1","tags":["javascript","postgres","cockroach","memory","rdbms","db","database","sql","functional"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install postgres-fp","imports":["const connect = require('postgres-fp/connect')\nconst connection = await connect({ hostname: 'localhost', port: 5432 })","const execute = require('postgres-fp/execute')\nconst result = await execute(connection, 'CREATE TABLE test (id SERIAL PRIMARY KEY)')","const getAll = require('postgres-fp/getAll')\nconst rows = await getAll(connection, 'SELECT * FROM test')"]},{"cmd":"yarn add postgres-fp","imports":[]},{"cmd":"pnpm add postgres-fp","imports":[]}],"homepage":"https://github.com/markwylde/postgres-fp#readme","github":"https://github.com/markwylde/postgres-fp","docs":null,"changelog":null,"pypi":null,"npm":"postgres-fp","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}