UNPKG

mysql

Version:

A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed.

15 lines (11 loc) 375 B
module.exports = AuthSwitchResponsePacket; function AuthSwitchResponsePacket(options) { options = options || {}; this.data = options.data; } AuthSwitchResponsePacket.prototype.parse = function parse(parser) { this.data = parser.parsePacketTerminatedBuffer(); }; AuthSwitchResponsePacket.prototype.write = function write(writer) { writer.writeBuffer(this.data); };