ForbesLindesay / atdatabases

TypeScript clients for databases that prevent SQL Injection
https://www.atdatabases.org
MIT License
609 stars 47 forks source link

/mysql IPC socket connection #119

Open elmarti opened 4 years ago

elmarti commented 4 years ago

Unfortunately I need to pivot a project to use IPC sockets instead of a URL connection string. It looks like this isn't possible with this library.

Proposal

Add an alternative connection object parameter which allows easier configuration of connection and the use of IPC sockets.

See TypeORM's connection options for an example https://github.com/typeorm/typeorm/blob/master/docs/connection-options.md

ForbesLindesay commented 4 years ago

Yes, we already support something very similar for Postgres. I'm happy to accept a pull request that allows specifying the connection configuration as an object.