Remix.run Logo
semiquaver 5 hours ago

How is this different from sqlc with sqlc-gen-typescript?

n_e 5 hours ago | parent [-]

I didn't look too much into sqlc-gen-typescript because the project looks abandoned (no commits in 2 years, many open PRs).

Regarding sqlc in general, it is focused on having the SQL queries in .sql files, while pg-typed is focused on having the queries inline (though I plan to add .sql file support). I like the latter approach better, as for small queries used in only one place, it is a little cumbersome to add them to a different file and find a name for them.