An ectypes strategy for node-postgres, version 1.0.0 (latest). Provides a PGStrategy class that wraps node-postgres with ectypes schema validation. Minimal release history, no recent updates. Key differentiator: integrates ectypes data validation into PostgreSQL queries, but dependency on ectypes and node-postgres makes it niche. Requires ectypes as peer dependency.
npm install ectypes-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a PGStrategy instance with a PostgreSQL connection string for use with ectypes schema validation.
Ensure process.env.DBCONN or a valid connection string is passed to the constructor
Consider migrating to a maintained alternative like knex or node-postgres with manual validation
Run 'npm install ectypes' alongside ectypes-postgres
Run 'npm install ectypes' to install peer dependency
Use const { PGStrategy } = require('ectypes-postgres') or const PGStrategy = require('ectypes-postgres').PGStrategy