jeremydaly / serverless-mysql

A module for managing MySQL connections at SERVERLESS scale
MIT License
1.2k stars 83 forks source link

feat: expose `escapeId` and `format` and correct TypeScript types #120

Closed benvium closed 1 year ago

benvium commented 3 years ago

Can now use escapeId and format functions on the mysql object.

The previous type of the mysql.escape function was wrong - should be a function returning a string (not a function returning {escape,escapeId,format}. Corrected this and used the same scheme for the new functions

naorpeled commented 1 year ago

LGTM, thanks for your contribution, you're aweomse!