server-status.js 1.4 KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * possible server status flag value
  3. * see https://mariadb.com/kb/en/library/ok_packet/#server-status-flag
  4. * @type {number}
  5. */
  6. //A transaction is currently active
  7. module.exports.STATUS_IN_TRANS = 1;
  8. //Autocommit mode is set
  9. module.exports.STATUS_AUTOCOMMIT = 2;
  10. //more results exists (more packet follow)
  11. module.exports.MORE_RESULTS_EXISTS = 8;
  12. module.exports.QUERY_NO_GOOD_INDEX_USED = 16;
  13. module.exports.QUERY_NO_INDEX_USED = 32;
  14. //when using COM_STMT_FETCH, indicate that current cursor still has result (deprecated)
  15. module.exports.STATUS_CURSOR_EXISTS = 64;
  16. //when using COM_STMT_FETCH, indicate that current cursor has finished to send results (deprecated)
  17. module.exports.STATUS_LAST_ROW_SENT = 128;
  18. //database has been dropped
  19. module.exports.STATUS_DB_DROPPED = 1 << 8;
  20. //current escape mode is "no backslash escape"
  21. module.exports.STATUS_NO_BACKSLASH_ESCAPES = 1 << 9;
  22. //A DDL change did have an impact on an existing PREPARE (an automatic reprepare has been executed)
  23. module.exports.STATUS_METADATA_CHANGED = 1 << 10;
  24. module.exports.QUERY_WAS_SLOW = 1 << 11;
  25. //this result-set contain stored procedure output parameter
  26. module.exports.PS_OUT_PARAMS = 1 << 12;
  27. //current transaction is a read-only transaction
  28. module.exports.STATUS_IN_TRANS_READONLY = 1 << 13;
  29. //session state change. see Session change type for more information
  30. module.exports.SESSION_STATE_CHANGED = 1 << 14;