-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #992 from BarthesSimpson/master
Make node-mysql2 compatible with minification
- Loading branch information
Showing
2 changed files
with
77 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
'use strict'; | ||
|
||
'client_handshake server_handshake query prepare close_statement execute ping register_slave binlog_dump change_user quit' | ||
.split(' ') | ||
.forEach(name => { | ||
const ctor = require(`./${name}.js`); | ||
module.exports[ctor.name] = ctor; | ||
}); | ||
const ClientHandshake = require('./client_handshake.js'); | ||
const ServerHandshake = require('./server_handshake.js'); | ||
const Query = require('./query.js'); | ||
const Prepare = require('./prepare.js'); | ||
const CloseStatement = require('./close_statement.js'); | ||
const Execute = require('./execute.js'); | ||
const Ping = require('./ping.js'); | ||
const RegisterSlave = require('./register_slave.js'); | ||
const BinlogDump = require('./binlog_dump.js'); | ||
const ChangeUser = require('./change_user.js'); | ||
const Quit = require('./quit.js'); | ||
|
||
module.exports = { | ||
ClientHandshake, | ||
ServerHandshake, | ||
Query, | ||
Prepare, | ||
CloseStatement, | ||
Execute, | ||
Ping, | ||
RegisterSlave, | ||
BinlogDump, | ||
ChangeUser, | ||
Quit | ||
}; |
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