npm.io
2.0.0 • Published yesterday

unconventional-pg-queries

Licence
MIT
Version
2.0.0
Deps
0
Size
46 kB
Vulns
0
Weekly
0
Stars
5

Unconventional Queries

GitHub npm npm Bundle Size Bundle Size npm type definitions

A lightweight PostgreSQL query builder for Node.js applications.

Features

  • 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

Installation

npm install unconventional-pg-queries

Unconventional 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!

DOCUMENTATION

Keywords