protocol.go 558 B

1234567891011121314151617181920212223242526272829303132333435
  1. package protocol
  2. const (
  3. DBMS_MIN_REVISION_WITH_SERVER_TIMEZONE = 54058
  4. DBMS_MIN_REVISION_WITH_QUOTA_KEY_IN_CLIENT_INFO = 54060
  5. )
  6. const (
  7. ClientHello = 0
  8. ClientQuery = 1
  9. ClientData = 2
  10. ClientCancel = 3
  11. ClientPing = 4
  12. )
  13. const (
  14. CompressEnable uint64 = 1
  15. CompressDisable uint64 = 0
  16. )
  17. const (
  18. StateComplete = 2
  19. )
  20. const (
  21. ServerHello = 0
  22. ServerData = 1
  23. ServerException = 2
  24. ServerProgress = 3
  25. ServerPong = 4
  26. ServerEndOfStream = 5
  27. ServerProfileInfo = 6
  28. ServerTotals = 7
  29. ServerExtremes = 8
  30. )