- Introduced sqlstring module for SQL escape and formatting. - Added supports-color module to detect terminal color support. - Created dashboard and login views with Bootstrap styling. - Implemented user schema in SQL with mock data for testing.
17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
'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;
|