{"library":"sql-code-generator","type":"library","category":null,"description":"A CLI tool that generates TypeScript type definitions and typed query functions from SQL schemas and queries, supporting PostgreSQL and MySQL. At version 0.10.1, it's in early development with an oclif-based CLI. Key differentiators: generates both types and executable query functions, works with existing .sql files and .ts files containing SQL strings, and uses a single config file (codegen.sql.yml). Requires peer dependency yesql 3.2.2. Inspired by graphql-code-generator.","language":"javascript","status":"active","version":"0.10.1","tags":["javascript","database","schema","sql","typescript","generator","client","types"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-code-generator","imports":["import { generate } from 'sql-code-generator';","import { SqlTablePhoto } from './dao/generated/types';"]},{"cmd":"yarn add sql-code-generator","imports":[]},{"cmd":"pnpm add sql-code-generator","imports":[]}],"homepage":"https://github.com/ehmpathy/sql-code-generator","github":"https://github.com/ehmpathy/sql-code-generator","docs":null,"changelog":null,"pypi":null,"npm":"sql-code-generator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}