A lightweight PostgreSQL query builder for Node.js applications.
- Simple Query Building: Build complex SQL queries using plain JavaScript objects
- Type Safety: Full TypeScript support with comprehensive type definitions
- Relation Support: Expand related data with nested objects
- Relation Filtering: Filter on related tables
- JSON Support: Query nested JSON fields
- Pagination: Built-in cursor-based pagination
- Lightweight: Minimal dependencies, only requires
pg
npm install unconventional-pg-queriesUnconventional Queries is a tiny query builder for the pg library. Perfect for edge workers with size limits, such as Cloudflare Workers, where every line of code counts. Unlock the utility of your Postgres DB, minimize bloat, and never write a line of SQL manually again!