/var/www/qr4y.gr/server/delivery/node_modules/mysql2/lib/commands
NameSizeModeActions
auth_switch.js34590644editdlrm
binlog_dump.js29200644editdlrm
change_user.js17610644editdlrm
client_handshake.js64430644editdlrm
close_statement.js3610644editdlrm
command.js12640644editdlrm
execute.js37170644editdlrm
index.js6960644editdlrm
ping.js8170644editdlrm
prepare.js34960644editdlrm
query.js100740644editdlrm
quit.js5630644editdlrm
register_slave.js5920644editdlrm
server_handshake.js51800644editdlrm
Edit: /var/www/qr4y.gr/server/delivery/node_modules/mysql2/lib/commands/command.js (1264B)
'use strict'; const EventEmitter = require('events').EventEmitter; const Timers = require('timers'); class Command extends EventEmitter { constructor() { super(); this.next = null; } // slow. debug only stateName() { const state = this.next; for (const i in this) { if (this[i] === state && i !== 'next') { return i; } } return 'unknown name'; } execute(packet, connection) { if (!this.next) { this.next = this.start; connection._resetSequenceId(); } if (packet && packet.isError()) { const err = packet.asError(connection.clientEncoding); err.sql = this.sql || this.query; if (this.queryTimeout) { Timers.clearTimeout(this.queryTimeout); this.queryTimeout = null; } if (this.onResult) { this.onResult(err); this.emit('end'); } else { this.emit('error', err); this.emit('end'); } return true; } // TODO: don't return anything from execute, it's ugly and error-prone. Listen for 'end' event in connection this.next = this.next(packet, connection); if (this.next) { return false; } this.emit('end'); return true; } } module.exports = Command;