@relq/orm
v1.0.10
Published
The runtime engine for Relq — type-safe PostgreSQL ORM for TypeScript
Downloads
343
Maintainers
Readme
@relq/orm is the runtime query engine. You write db.table.users.select('id', 'email') and TypeScript knows the return type is { id: string; email: string }[]. Change a column in your schema and every query updates instantly. No codegen. No CLI-generated types.
Supports 11 PostgreSQL dialects (PostgreSQL, Supabase, Neon, AlloyDB, Aurora, Citus, Timescale, Nile, CockroachDB, YugabyteDB, AWS DSQL) and 3 MySQL dialects (MySQL, MariaDB, PlanetScale).
Each dialect only exposes the features it supports. TypeScript enforces this — you cannot call subscribe() on AWS DSQL or setTenant() on standard PostgreSQL.
Install
npm install @relq/orm
npm install -D @relq/kit # schema definition + CLIDocumentation
Visit relq.io/docs for the full API reference, guides, and examples.
