{"library":"nu-schemats","type":"library","category":null,"description":"Schemats generates TypeScript interface definitions from PostgreSQL or MySQL database schemas. Version 4.9.1 is the latest stable release, with irregular release cadence. It supports generating types for all tables in a schema or specific tables, and provides both CLI and programmatic API. Key differentiators include config file support, type-safe query results integration with pg-promise, and handling of custom types.","language":"javascript","status":"active","version":"4.9.1","tags":["javascript","postgres","schema","typescript","sql"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install nu-schemats","imports":["schemats generate -c postgres://user:pass@localhost/db -t users -o types.ts","import { generate } from 'schemats'; const config = { conn: 'postgres://...', table: ['users'] }; await generate(config);","Place schemats.json in project root with config. Run 'schemats generate' without arguments."]},{"cmd":"yarn add nu-schemats","imports":[]},{"cmd":"pnpm add nu-schemats","imports":[]}],"homepage":"https://github.com/aldis-ameriks/schemats#readme","github":"https://github.com/aldis-ameriks/schemats","docs":null,"changelog":null,"pypi":null,"npm":"nu-schemats","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}