ts_sqlx 0.1.0

Typescript SQLx compile-time checked queries without a DSL.
Documentation

ts-sqlx

license API Crate

Typescript SQLx compile-time checked queries without a DSL.

Install

cargo install ts-sqlx

Getting started

include path to generated declaration files in tsconfig.json

{
  "include": [".ts-sqlx/*"]
}

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

References