mysql2
mysql2 copied to clipboard
Typings for https://github.com/sidorares/node-mysql2
Hi I don't know what I'm doing wrong. I cannot properly type results when the option `rowsAsArray` is enabled. My SQL returns an array of arrays that contains only one...
Hi there, The function promise() is not available on the Pool class :( !? Thanks for your help !
when I try to install the typing using the instructions in the readme it says: typings install --save mysql2 bash: typings: command not found
As described over here: https://github.com/sidorares/node-mysql2 ```js // For pool initialization, see above pool.getConnection(function(conn) { // Do something with the connection conn.query(/* ... */); // Don't forget to release the connection...
It is possible to release it to npm? https://github.com/types/mysql2/issues/19 is on hold for a long time for some reason, also I didn't notice any progress on https://github.com/sidorares/node-mysql2/pull/1028 😢
Hi! I'm fairly new with Node and Typescript in general and, while following a tutorial, I've encountered an issue trying to install types/mysql2 via the command `npm i types/mysql2 -D`...
Hi @dctrotz, I've updated the project and use `@types/node`. I do not use `mysql2` myself. Can you see if this works correct for you? You can try it with `npm...
Upon console logging an `INSERT`, I can see the following: ``` ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 0, info: '', serverStatus: 2, warningStatus: 1 } ``` This would imply...
Hello. Sorry, if I don't understand how it works. In d.ts file we have such declaration ``` declare interface RowDataPacket { constructor: { name: 'RowDataPacket' }; [column: string]: any; [column:...