A type-safe SQL builder and validator for PostgreSQL, currently at version 0.15.1 with a development-level release cadence. Key differentiators include compile-time SQL validation (catching syntax errors before execution), automatic parameterization to prevent SQL injection, and a fluent builder API. Compared to knex or sql-builder, sedk-postgres provides stronger type guarantees via TypeScript and explicit schema definition.
npm install sedk-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a table and builds a SELECT query with parameterized WHERE clause, outputting SQL text and values.
Update column types to uppercase PG types: `'TEXT'`, `'INTEGER'`, etc.
Adapt code to destructure `text` and `values` from the result.
Use named imports like `import { select } from 'sedk-postgres'`.Define columns in lowercase to match PostgreSQL behavior, or quote identifiers manually.
Clone the builder or rebuild before each `.toSQL()` call.
Change to `import { defineTable } from 'sedk-postgres'`.Update types to uppercase PostgreSQL types: `'TEXT'`, `'INTEGER'`, etc.
Upgrade to v0.13+ and destructure `{ text, values }` from the result.Run `npm install sedk-postgres` and ensure import path is correct.
No dependency data recorded yet.