{"library":"postgres-schema-ts","type":"library","category":null,"description":"Convert PostgreSQL schemas into TypeScript interfaces. v0.5.0 is the latest stable release. This package provides a CLI and programmatic API to generate TypeScript type definitions from Postgres database schemas. It focuses on simplicity with no configuration required, supporting both full schema inference and per-table generation. Unlike alternatives like schemats, it is Postgres-only, uses inline enums, and avoids namespaces. The generation respects PostgreSQL defaults such as nullable columns (producing union with null) and timestamp mapping to Date. No recent updates since 2022.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","typescript","sql","schema"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install postgres-schema-ts","imports":["import { inferSchema } from 'postgres-schema-ts'","import { inferTable } from 'postgres-schema-ts'","npx postgres-schema-ts postgresql://user:pass@host:port/db?currentSchema=public"]},{"cmd":"yarn add postgres-schema-ts","imports":[]},{"cmd":"pnpm add postgres-schema-ts","imports":[]}],"homepage":"https://github.com/nettofarah/postgres-schema-ts","github":"https://github.com/nettofarah/postgres-schema-ts","docs":null,"changelog":null,"pypi":null,"npm":"postgres-schema-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}