Qustar is a TypeScript SQL query builder that composes queries through an array-like API with map, filter, and orderBy methods. Version 0.0.52 is in early active development with support for PostgreSQL, SQLite, MySQL, and MariaDB via separate connector packages. It generates 100% SQL via codegen-free expression evaluation, avoiding ORM-like magic. Key differentiators: no code generation, no migrations or transactions yet, and native operator overloading is not supported, requiring explicit method calls like .add(), .eq() for expressions.
npm install qustarNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a table schema, build a query with orderBy, map, and limit, then fetch from PostgreSQL.
Replace e.g. user.age + 1 with user.age.add(1).
Pin to exact version or expect breaking changes.
Install a connector like qustar-pg and import from it.
Always provide full table definition object.
Run: npm install qustar-pg
Replace 'user.age + 1' with 'user.age.add(1)'.
Use: import { Q } from 'qustar';