{"library":"sql-typechecker","type":"library","category":null,"description":"SQL-Typechecker is a CLI tool (v0.1.0) written in TypeScript that parses PostgreSQL DDL and SQL function files, performs type-checking beyond what PostgreSQL natively offers, and generates TypeScript type definitions including branded types. It aims to provide rigorous type-checking for SQL functions and supports nested JSON outputs, branded types (newtypes), and a subset of PostgreSQL syntax. The project is under active development but has been used in production for years. It differentiates from tools like pgtyped by not relying on PostgreSQL’s own type-checker and by generating branded types.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-typechecker","imports":["npx sql-typechecker --dir ./sql --out ./ts","import { customer_id } from './out/types';\nconst id: customer_id = 42 as customer_id;","import { my_function } from './out/out';\nconst result = await my_function(pool, {});","import { Pool } from 'pg';\nconst pool = new Pool();"]},{"cmd":"yarn add sql-typechecker","imports":[]},{"cmd":"pnpm add sql-typechecker","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"sql-typechecker","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}