Enumerator |
---|
MYSQLX_OPT_URI | connection URI or string
|
MYSQLX_OPT_HOST | DNS name of the host, IPv4 address or IPv6 address
|
MYSQLX_OPT_PORT | X Plugin port to connect to
|
MYSQLX_OPT_PRIORITY | Assign a priority (a number in range 1 to 100) to the last specified host; these priorities are used to determine the order in which multiple hosts are tried by the connection fail-over logic (see description of Session class)
|
MYSQLX_OPT_USER | user name
|
MYSQLX_OPT_PWD | password
|
MYSQLX_OPT_DB | default database
|
MYSQLX_OPT_SSL_MODE | Specify SSLMode option to be used. In plain C code the value should be a #mysqlx_ssl_mode_t enum constant.
|
MYSQLX_OPT_SSL_CA | path to a PEM file specifying trusted root certificates
|
MYSQLX_OPT_AUTH | Authentication method to use, see AuthMethod. In plain C code the value should be a #mysqlx_auth_method_t enum constant.
|
MYSQLX_OPT_SOCKET | unix socket path
|
MYSQLX_OPT_CONNECT_TIMEOUT | Sets connection timeout in milliseconds. In C++ code can be also set to a std::chrono::duration value.
|
MYSQLX_OPT_CONNECTION_ATTRIBUTES | Specifies connection attributes (key-value pairs) to be sent when a session is created. The value is a JSON string (in C++ code can be also a DbDoc object) defining additional attributes to be sent on top of the default ones. Setting this option to false (in C++ code) or NULL (in plain C code) disables sending any connection attributes (including the default ones). Setting it to true (in C++ code) or empty string (in plain C code) requests sending only the default attributes which is also the default behavior when this option is not set.
|
MYSQLX_OPT_TLS_VERSIONS | List of allowed TLS protocol versions, such as "TLSv1.2". The value is a string with comma separated versions. In C++ code it can also be an iterable container with versions.
|
MYSQLX_OPT_TLS_CIPHERSUITES | List of allowed TLS cipher suites. The value is a string with comma separated IANA cipher suitenames (such as "TLS_RSA_WITH_3DES_EDE_CBC_SHA"). In C++ code it can also be an iterable container with names. Unknown cipher suites are silently ignored.
|
MYSQLX_OPT_DNS_SRV | If enabled (true) will check hostname for DNS SRV record and use its configuration (hostname, port, priority and weight) to connect.
|
MYSQLX_OPT_COMPRESSION | enable or disable compression
|
MYSQLX_OPT_COMPRESSION_ALGORITHMS | Specify compression algorithms in order of preference
|
MYSQLX_OPT_SSL_CAPATH | Path to a directory containing PEM files specifying trusted root certificates.
|
MYSQLX_OPT_SSL_CRL | Path to a PEM file containing certificate revocation lists
|
MYSQLX_OPT_SSL_CRLPATH | Path to a directory containing PEM files with certificate revocation lists
|