types / mysql2

Typings for https://github.com/sidorares/node-mysql2
ISC License
41 stars 23 forks source link

Typedefs don't support rowsAsArray option #22

Closed moberemk closed 5 years ago

moberemk commented 6 years ago

mysql2 supports getting query results back as an array of arrays but currently the typedefs don't include this query option (as it's not in the relied-upon @types/mysql lib) and its return value (an array of arrays) is also missing as an option for functions like query and execute.

hsjoberg commented 5 years ago

Hi, I've added rowsAsArray for ConnectionOptions in pull request #27