Finish admin dashboard and update sql

This commit is contained in:
estherdev03
2025-04-20 06:59:32 -06:00
parent 68d2b950c0
commit b5c4a783a9
1420 changed files with 182156 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
module.exports = LocalInfileRequestPacket;
function LocalInfileRequestPacket(options) {
options = options || {};
this.filename = options.filename;
}
LocalInfileRequestPacket.prototype.parse = function parse(parser) {
if (parser.parseLengthCodedNumber() !== null) {
var err = new TypeError('Received invalid field length');
err.code = 'PARSER_INVALID_FIELD_LENGTH';
throw err;
}
this.filename = parser.parsePacketTerminatedString();
};
LocalInfileRequestPacket.prototype.write = function write(writer) {
writer.writeLengthCodedNumber(null);
writer.writeString(this.filename);
};