pg-mem icon indicating copy to clipboard operation
pg-mem copied to clipboard

feat: add `postgres-js` adapter

Open smcclure17 opened this issue 10 months ago • 0 comments

From #386

In src/adapters/adapters.ts: Creates an adapter that mimics the contract/behavior of postgres-js similar to what is done for pg-native.

In src/tests/postgres-js-mimic.spec.ts: Adds tests to verify mimicked behavior matched original.

This only implements the default Sql template tagged literal and unsafe() for performing queries.. We would need to add further implementation to match the features from https://github.com/porsager/postgres

smcclure17 avatar Apr 11 '24 17:04 smcclure17