client.js 1.4 KB

123456789101112131415161718192021222324252627
  1. // Manually extracted from mysql-5.5.23/include/mysql_com.h
  2. exports.LONG_PASSWORD = 1; /* new more secure passwords */
  3. exports.FOUND_ROWS = 2; /* Found instead of affected rows */
  4. exports.LONG_FLAG = 4; /* Get all column flags */
  5. exports.CONNECT_WITH_DB = 8; /* One can specify db on connect */
  6. exports.NO_SCHEMA = 16; /* Don't allow database.table.column */
  7. exports.COMPRESS = 32; /* Can use compression protocol */
  8. exports.ODBC = 64; /* Odbc client */
  9. exports.LOCAL_FILES = 128; /* Can use LOAD DATA LOCAL */
  10. exports.IGNORE_SPACE = 256; /* Ignore spaces before '(' */
  11. exports.PROTOCOL_41 = 512; /* New 4.1 protocol */
  12. exports.INTERACTIVE = 1024; /* This is an interactive client */
  13. exports.SSL = 2048; /* Switch to SSL after handshake */
  14. exports.IGNORE_SIGPIPE = 4096; /* IGNORE sigpipes */
  15. exports.TRANSACTIONS = 8192; /* Client knows about transactions */
  16. exports.RESERVED = 16384; /* Old flag for 4.1 protocol */
  17. exports.SECURE_CONNECTION = 32768; /* New 4.1 authentication */
  18. exports.MULTI_STATEMENTS = 65536; /* Enable/disable multi-stmt support */
  19. exports.MULTI_RESULTS = 131072; /* Enable/disable multi-results */
  20. exports.PS_MULTI_RESULTS = 262144; /* Multi-results in PS-protocol */
  21. exports.PLUGIN_AUTH = 524288; /* Client supports plugin authentication */
  22. exports.SSL_VERIFY_SERVER_CERT = 1073741824;
  23. exports.REMEMBER_OPTIONS = 2147483648;