CLIENT.py 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # https://dev.mysql.com/doc/internals/en/capability-flags.html#packet-Protocol::CapabilityFlags
  2. LONG_PASSWORD = 1
  3. FOUND_ROWS = 1 << 1
  4. LONG_FLAG = 1 << 2
  5. CONNECT_WITH_DB = 1 << 3
  6. NO_SCHEMA = 1 << 4
  7. COMPRESS = 1 << 5
  8. ODBC = 1 << 6
  9. LOCAL_FILES = 1 << 7
  10. IGNORE_SPACE = 1 << 8
  11. PROTOCOL_41 = 1 << 9
  12. INTERACTIVE = 1 << 10
  13. SSL = 1 << 11
  14. IGNORE_SIGPIPE = 1 << 12
  15. TRANSACTIONS = 1 << 13
  16. SECURE_CONNECTION = 1 << 15
  17. MULTI_STATEMENTS = 1 << 16
  18. MULTI_RESULTS = 1 << 17
  19. PS_MULTI_RESULTS = 1 << 18
  20. PLUGIN_AUTH = 1 << 19
  21. CONNECT_ATTRS = 1 << 20
  22. PLUGIN_AUTH_LENENC_CLIENT_DATA = 1 << 21
  23. CAPABILITIES = (
  24. LONG_PASSWORD
  25. | LONG_FLAG
  26. | PROTOCOL_41
  27. | TRANSACTIONS
  28. | SECURE_CONNECTION
  29. | MULTI_RESULTS
  30. | PLUGIN_AUTH
  31. | PLUGIN_AUTH_LENENC_CLIENT_DATA
  32. | CONNECT_ATTRS
  33. )
  34. # Not done yet
  35. HANDLE_EXPIRED_PASSWORDS = 1 << 22
  36. SESSION_TRACK = 1 << 23
  37. DEPRECATE_EOF = 1 << 24