neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
https://www.npmjs.com/package/@neondatabase/serverless
MIT License
321 stars 13 forks source link

Re-export escaping utils. #37

Closed nicksrandall closed 1 year ago

nicksrandall commented 1 year ago

See: https://node-postgres.com/apis/utilities

jawj commented 1 year ago

Thanks for this. However, exporting these functions at the top-level is a quite a new addition to pg.

Right now, the Neon driver builds on top of pg 8.8. We'll need to make some changes in order to upgrade to the latest version.

In the meantime, you can access these utility functions on a client instance or as Client.prototype.escapeIdentifier()/Client.prototype.escapeLiteral().