Zapa to s: Zero-Abstraction Postgres for TypeScript

submited by
Style Pass
2024-10-22 10:00:04

Wow this is amazing. […] Exactly the kind of ‘use SQL in typescript code with type-safety’ non-ORM that I’ve always wanted.

[I’ve] tried every ORM there is in the JS/TypeScript land. And I’ve settled on Zapatos, which […] is a breath of fresh air and is a delight to use.

Typescript schema   A command-line tool speaks to your Postgres database and writes up a detailed TypeScript schema for every table. This is just a means to an end: it enables the next three things in this list. Show me »

Arbitrary SQL   Simple building blocks help you write arbitrary SQL using tagged templates, and manually apply the right types to what goes in and what comes back. Show me »

Everyday CRUD   Shortcut functions produce everyday CRUD queries with no fuss and no surprises, fully and automatically typed. Show me »

JOINs as nested JSON   Nested shortcut calls generate LATERAL JOIN queries, resulting in arbitrarily complex nested JSON structures, still fully and automatically typed. Show me »

Leave a Comment
Related Posts