Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[CONJS-153] binary protocol support
new methods connection.prepare, connection.execute, connection.unprepare like mysql2 API. Implementation differ compared to mysql2 : * support binary batching * support streaming parameters * cache is not infinite: using a LRU cache (option `cacheLen`, default to 256, 0 meaning no cache). * Implement MariaDB 10.6 new feature permitting to skip metadata if cached, server sending only the raw data for faster results
- Loading branch information
Showing
101 changed files
with
6,398 additions
and
8,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const assert = require('assert'); | ||
|
|
||
| module.exports.title = 'select one mysql.user using execute promise'; | ||
| module.exports.displaySql = 'select <all mysql.user fields> from mysql.user u LIMIT 1'; | ||
| module.exports.promise = true; | ||
| module.exports.requireExecute = true; | ||
| module.exports.benchFct = function (conn, deferred) { | ||
| conn | ||
| .execute('select * from mysql.user u LIMIT 1') | ||
| .then((rows) => { | ||
| // assert.equal(50000000, rows[0]["t"]); | ||
| deferred.resolve(); | ||
| }) | ||
| .catch((err) => { | ||
| throw err; | ||
| }); | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.