commands.js 747 B

123456789101112131415161718192021222324252627282930313233343536
  1. 'use strict';
  2. module.exports = {
  3. SLEEP: 0x00, // deprecated
  4. QUIT: 0x01,
  5. INIT_DB: 0x02,
  6. QUERY: 0x03,
  7. FIELD_LIST: 0x04,
  8. CREATE_DB: 0x05,
  9. DROP_DB: 0x06,
  10. REFRESH: 0x07,
  11. SHUTDOWN: 0x08,
  12. STATISTICS: 0x09,
  13. PROCESS_INFO: 0x0a, // deprecated
  14. CONNECT: 0x0b, // deprecated
  15. PROCESS_KILL: 0x0c,
  16. DEBUG: 0x0d,
  17. PING: 0x0e,
  18. TIME: 0x0f, // deprecated
  19. DELAYED_INSERT: 0x10, // deprecated
  20. CHANGE_USER: 0x11,
  21. BINLOG_DUMP: 0x12,
  22. TABLE_DUMP: 0x13,
  23. CONNECT_OUT: 0x14,
  24. REGISTER_SLAVE: 0x15,
  25. STMT_PREPARE: 0x16,
  26. STMT_EXECUTE: 0x17,
  27. STMT_SEND_LONG_DATA: 0x18,
  28. STMT_CLOSE: 0x19,
  29. STMT_RESET: 0x1a,
  30. SET_OPTION: 0x1b,
  31. STMT_FETCH: 0x1c,
  32. DAEMON: 0x1d, // deprecated
  33. BINLOG_DUMP_GTID: 0x1e,
  34. UNKNOWN: 0xff // bad!
  35. };