weblogin/node_modules/mysql2/lib/commands/close_statement.js

19 lines
361 B
JavaScript
Raw Normal View History

2023-01-27 10:58:43 +00:00
'use strict';
const Command = require('./command');
const Packets = require('../packets/index.js');
class CloseStatement extends Command {
constructor(id) {
super();
this.id = id;
}
start(packet, connection) {
connection.writePacket(new Packets.CloseStatement(this.id).toPacket(1));
return null;
}
}
module.exports = CloseStatement;