Overview of PgTyped
masterPgTyped allows you to use raw SQL in TypeScript with guaranteed type-safety. Instead of manually mapping or translating your database schema to TypeScript, PgTyped automatically generates types and interfaces for your SQL queries by using your running Postgres database as the source of type information.
Key characteristics:
- Static typing: SQL queries are validated and fully usable by the TypeScript typechecker.
- No magic: PgTyped is not a query builder or an ORM; it is a tool for generating types from raw SQL.
- Smooth developer experience: Designed for engineers who want to write raw SQL while maintaining type safety.