postgres-partial

JSON →
library 0.2.0 ·javascript
verified Jun 7, 2026

A lightweight wrapper around postgres.js (the porsager/postgres library) for building partial and dynamic SQL queries. Version 0.2.0 is the latest and only release. Unlike query builders like Knex or raw template strings, postgres-partial allows composing SQL fragments (e.g., WHERE clauses, SET clauses) that are merged into a final statement while preserving parameter safety. Designed for projects that use postgres.js and need a minimal, typed way to conditionally build queries without a full ORM. Types included.