ts-sqlx
Typescript SQLx compile-time checked queries without a DSL.
Install
Getting started
include path to generated declaration files in tsconfig.json
create a .env file with DATABASE_URL
set to your database url
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
run in watch mode with ts-sqlx watch
in the root of your project or just one time with ts-sqlx run
or for help ts-sqlx help