UNPKG

mysql2

Version:

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS

18 lines (13 loc) 368 B
'use strict'; const Packet = require('../packets/packet'); const CommandCodes = require('../constants/commands'); class ResetConnection { constructor() {} toPacket() { const packet = new Packet(0, Buffer.alloc(5), 0, 5); packet.offset = 4; packet.writeInt8(CommandCodes.RESET_CONNECTION); return packet; } } module.exports = ResetConnection;