prepared_statement_header.js 375 B

12345678910111213141516
  1. 'use strict';
  2. class PreparedStatementHeader {
  3. constructor(packet) {
  4. packet.skip(1); // should be 0
  5. this.id = packet.readInt32();
  6. this.fieldCount = packet.readInt16();
  7. this.parameterCount = packet.readInt16();
  8. packet.skip(1); // should be 0
  9. this.warningCount = packet.readInt16();
  10. }
  11. }
  12. // TODO: toPacket
  13. module.exports = PreparedStatementHeader;