27 #if !defined(MYSQLPP_WNP_CONNECTION_H)
28 #define MYSQLPP_WNP_CONNECTION_H
56 const char* password = 0) :
59 connect(db, user, password);
82 bool connect(
const char* db = 0,
const char* user = 0,
83 const char* password = 0);
92 static bool is_wnp(
const char* server);
99 WindowsNamedPipeConnection(
const char*,
const char*,
const char*,
100 const char*,
unsigned int) { }
104 bool connect(
const char*,
const char*,
const char*,
const char*,
105 unsigned int) {
return false; }
Manages the connection to the database server.
Definition: connection.h:60
Specialization of Connection for Windows named pipes.
Definition: wnp_connection.h:40
WindowsNamedPipeConnection()
Create object without connecting it to the MySQL server.
Definition: wnp_connection.h:43
~WindowsNamedPipeConnection()
Destroy object.
Definition: wnp_connection.h:72
WindowsNamedPipeConnection(const char *db, const char *user=0, const char *password=0)
Create object and connect to database server over Windows named pipes in one step.
Definition: wnp_connection.h:55
WindowsNamedPipeConnection(const WindowsNamedPipeConnection &other)
Establish a new connection using the same parameters as an existing connection.
Definition: wnp_connection.h:66
Declares the Connection class.