MySQL Connector/C++
MySQL connector library for C and C++ applications
List of all members
Client Class Reference

Create a client using given client settings. More...

Detailed Description

Create a client using given client settings.

Client allows the creation of sessions from a session pool.

This constructor forwards arguments to a ClientSettings constructor. Thus all forms of specifying client options are also directly available in Client constructor. ClientOptions and SessionOptions can be mixed when construction Client objects

Examples:

Client from_uri("mysqlx://user:pwd\@host:port/db?ssl-mode=disabled");
Client from_options("host", port, "user", "pwd", "db");
Client from_option_list(
SessionOption::SSL_MODE, SSLMode::DISABLED
);
@ POOLING
Definition: settings.h:132
@ POOL_QUEUE_TIMEOUT
Definition: settings.h:132
@ POOL_MAX_SIZE
Definition: settings.h:132
@ POOL_MAX_IDLE_TIME
Definition: settings.h:132
@ HOST
Definition: settings.h:75
@ PWD
Definition: settings.h:75
@ PORT
Definition: settings.h:75
@ DB
Definition: settings.h:75
@ SSL_MODE
Definition: settings.h:75
@ USER
Definition: settings.h:75
See also
ClientSettings

The documentation for this class was generated from the following file: