{"library":"pg-typegen","type":"library","category":null,"description":"Generate TypeScript type definitions from a Postgres database schema. v3.9.1 — actively maintained, weekly releases. Connects directly to a Postgres instance via connection string and introspects tables, columns, enums, views, and materialized views. Supports configurable suffixes, custom schemas, insert types, comments, and multiple output styles (interfaces/types, semicolons, optionals). Key differentiator: maps Postgres types to native JavaScript/TypeScript types matching the pg driver output, with bigint, date, and enum handling. No ORM dependency.","language":"javascript","status":"active","version":"3.9.1","tags":["javascript","typescript","types","database","postgres","schema","codegen","typegen"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-typegen","imports":["npx pg-typegen postgres://user:pass@localhost:5432/db","import { UserEntity, UserState } from './entities'"]},{"cmd":"yarn add pg-typegen","imports":[]},{"cmd":"pnpm add pg-typegen","imports":[]}],"homepage":"https://github.com/aldis-ameriks/pg-typegen#readme","github":"https://github.com/aldis-ameriks/pg-typegen","docs":null,"changelog":null,"pypi":null,"npm":"pg-typegen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}