Files
micro-service/node_modules/mysql2/lib/packets/prepared_statement_header.js
how2ice 44cca8f122 init
2025-08-14 23:34:11 +09:00

17 lines
375 B
JavaScript
Executable File

'use strict';
class PreparedStatementHeader {
constructor(packet) {
packet.skip(1); // should be 0
this.id = packet.readInt32();
this.fieldCount = packet.readInt16();
this.parameterCount = packet.readInt16();
packet.skip(1); // should be 0
this.warningCount = packet.readInt16();
}
}
// TODO: toPacket
module.exports = PreparedStatementHeader;