Introduction to genaql
genaql is a Tailwind-inspired query language that compiles to SQL. Write composable, type-safe queries using utility-style syntax that feels familiar to modern frontend developers.
Why genaql?
Composable Syntax
Like Tailwind for CSS, genaql uses utility patterns that are scannable, composable, and expressive. Colons separate utilities, slashes add modifiers.
Type Safety
Define your schema once and get compile-time validation, autocomplete, and runtime checks that catch errors before they hit your database.
Multi-Dialect
Write once, deploy anywhere. genaql supports PostgreSQL, MySQL, and SQLite with automatic placeholder syntax conversion.
Full ORM Features
Migrations, relations, eager loading, transactions — everything you need for production databases, with a clean API.
Quick Example
Here's how a typical query looks in genaql:
main:users slay:name,email sus:age>18 vibe:name bet:10SELECT name, email FROM users WHERE age > $1 ORDER BY name LIMIT $2Tailwind for SQL
genaql uses utility-style syntax that is scannable, composable, and expressive:
main:users slay:name,email sus:age>18 vibe:name/desc bet:10