Connection
for Unix domain sockets.
More...
#include <uds_connection.h>
Inheritance diagram for mysqlpp::UnixDomainSocketConnection:
Public Member Functions | |
UnixDomainSocketConnection () | |
Create object without connecting it to the MySQL server. | |
UnixDomainSocketConnection (const char *path, const char *db=0, const char *user=0, const char *password=0) | |
Create object and connect to database server over Unix domain sockets in one step. | |
UnixDomainSocketConnection (const UnixDomainSocketConnection &other) | |
Establish a new connection using the same parameters as an existing connection. | |
~UnixDomainSocketConnection () | |
Destroy object. | |
bool | connect (const char *path, const char *db=0, const char *user=0, const char *password=0) |
Connect to database after object is created. | |
Static Public Member Functions | |
static bool | is_socket (const char *path, std::string *error=0) |
Check that the given path names a Unix domain socket and that we have read-write permission for it. |
Connection
for Unix domain sockets.
This class just simplifies the connection creation interface of Connection
. It does not add new functionality.
|
Create object and connect to database server over Unix domain sockets in one step.
|
|
Establish a new connection using the same parameters as an existing connection.
|
|
Connect to database after object is created. It's better to use the connect-on-create constructor if you can. See its documentation for the meaning of these parameters. If you call this method on an object that is already connected to a database server, the previous connection is dropped and a new connection is established. |
|
Check that the given path names a Unix domain socket and that we have read-write permission for it.
|