status.go 754 B

123456789101112131415161718
  1. package mysql
  2. type ConnStatus uint16
  3. // Status of server connection
  4. const (
  5. SERVER_STATUS_IN_TRANS ConnStatus = 0x01 // Transaction has started
  6. SERVER_STATUS_AUTOCOMMIT ConnStatus = 0x02 // Server in auto_commit mode
  7. SERVER_STATUS_MORE_RESULTS ConnStatus = 0x04
  8. SERVER_MORE_RESULTS_EXISTS ConnStatus = 0x08 // Multi query - next query exists
  9. SERVER_QUERY_NO_GOOD_INDEX_USED ConnStatus = 0x10
  10. SERVER_QUERY_NO_INDEX_USED ConnStatus = 0x20
  11. SERVER_STATUS_CURSOR_EXISTS ConnStatus = 0x40 // Server opened a read-only non-scrollable cursor for a query
  12. SERVER_STATUS_LAST_ROW_SENT ConnStatus = 0x80
  13. SERVER_STATUS_DB_DROPPED ConnStatus = 0x100
  14. SERVER_STATUS_NO_BACKSLASH_ESCAPES ConnStatus = 0x200
  15. )