node-mysql2
node-mysql2 copied to clipboard
:zap: fast mysqljs/mysql compatible mysql driver for node.js
the overloading makes the function types harder to work with and adds no type refinement value. prefer a single, more concise interface. this commit leaves the `any | any[] |...
Adding other constants modules as top-level getters. This will resolve a number of open bugs, including * https://github.com/sidorares/node-mysql2/issues/1224 * https://github.com/sidorares/node-mysql2/issues/1216 * https://github.com/sidorares/node-mysql2/issues/1084 In my own use case, we had been...
Originally my changes were to expose query as a function of PoolCluster (as it was in the mysqljs library - https://github.com/mysqljs/mysql/blob/3430c513d6b0ca279fb7c79b210c9301e9315658/lib/PoolNamespace.js#L58) In order to achieve that, I had to expose...
This change solves "Warning: got packets out of order. Expected X but received Y" warnings emitted on mock server's connections. Before the change this message is printed 23 times during...
It acutally takes a callback, but `PoolCluster.d.ts` does not currently reflect that.
### Summary This merge request optimizes several functions in `promise.js`, including `ping()`, `execute()`, `query()`, and other similar methods, by moving the creation of `Error` objects inside their respective error handling...
Adds list of undefined named parameters/indexes to error message. For named parameters the error message will be `Bind parameters must not contain undefined (parameters :id, :email). To pass SQL NULL...
Fixes #1847 This PR contains just the failing test for #1847, without any fixes yet.
- [ ] switch to a command based server api - [ ] integration tests - [ ] server documentation - [ ] examples
Fixes #1019. str is undefined when record include zero date on execute select statement