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) 381 B
module.exports = ResultSetHeaderPacket; function ResultSetHeaderPacket(options) { options = options || {}; this.fieldCount = options.fieldCount; } ResultSetHeaderPacket.prototype.parse = function(parser) { this.fieldCount = parser.parseLengthCodedNumber(); }; ResultSetHeaderPacket.prototype.write = function(writer) { writer.writeLengthCodedNumber(this.fieldCount); };