You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
375 B
17 lines
375 B
|
2 months ago
|
'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;
|