#include <MyMySQLPPConnection.h>
Definition at line 31 of file MyMySQLPPConnection.h.
Public Member Functions | |
| CMyMySQLPPConnection (void) | |
| Class constructor. | |
| ~CMyMySQLPPConnection (void) | |
| Class destructor. | |
| BOOL | Connect (const char *host, const char *user, const char *password, const char *database=NULL, unsigned int port=3306, const char *unix_socket=NULL, unsigned int client_flag=0) |
| Connects to server. | |
| void | Close (void) |
| Disconnects from server. | |
| BOOL | Ping (void) |
| Checks if server is still alive. | |
| char * | GetClientInfo (void) |
| Returns a string that represents the client library version. | |
| char * | GetHostInfo (void) |
| Returns a string describing the type of connection in use. | |
| unsigned int | GetProtocolInfo (void) |
| Returns the protocol version used by current connection. | |
| char * | GetServerInfo (void) |
| Returns a string that represents the server version number. | |
| __int64 | AffectedRows (void) |
| Returns the number of rows changed by the last UPDATE, deleted by the last DELETE or inserted by the last INSERT statement. | |
| BOOL | ChangeUser (const char *user, const char *password, const char *db) |
| Changes the user and causes the database specified by db to become the default (current) database. | |
| const char * | CharacterSetName (void) |
| Returns the default character set for the current connection. | |
| unsigned int | ErrorNumber (void) |
| Returns the error code for the most recently invoked API function that can succeed or fail. | |
| char * | Error (void) |
| Returns the error message for the most recently invoked API function that can succeed or fail. | |
| __int64 | InsertID (void) |
| Returns the ID generated for an AUTO_INCREMENT column by the previous query. | |
| char * | Info (void) |
| Retrieves a string providing information about the most recently executed query. | |
| BOOL | Kill (unsigned long pid) |
| Asks the server to kill the thread specified by pid. | |
| BOOL | ListDatabases (CMyMySQLPPResult *result, const char *wild=NULL) |
| Returns a result set consisting of database names on the server that match the simple regular expression specified by the wild parameter. | |
| BOOL | ListFields (CMyMySQLPPResult *result, const char *table, const char *wild) |
| Returns a result set consisting of field names in the given table that match the simple regular expression specified by the wild parameter. | |
| BOOL | DropDatabase (const char *db) |
| Drops the database named by the db parameter. | |
| BOOL | ListProcesses (CMyMySQLPPResult *result) |
| Returns a result set describing the current server threads. | |
| BOOL | ListTables (CMyMySQLPPResult *result, const char *wild) |
| Returns a result set consisting of table names in the current database that match the simple regular expression specified by the wild parameter. | |
| BOOL | Options (enum mysql_option option, const char *arg) |
| Can be used to set extra connect options and affect behaviour for a connection. | |
| BOOL | Query (const char *query) |
| Executes the SQL query pointed to by the null-terminated string query. Cannot be used for queries that contain binary data - use RealQuery() instead. | |
| unsigned long | RealEscape (char *to, char *from, unsigned long length) |
| This function is used to create a legal SQL string that you can use in a SQL statement. | |
| BOOL | RealQuery (const char *query, unsigned long length) |
| Executes the SQL query pointed to by query, which should be a string length bytes long - binary safe version of Query(). | |
| BOOL | Reload (void) |
| Asks the MySQL server to reload the grant tables. The connected user must have the RELOAD privilege. | |
| BOOL | SelectDatabase (const char *db) |
| Causes the database specified by db to become the default (current) database on the connection. | |
| BOOL | Shutdown (void) |
| Asks the database server to shut down. The connected user must have SHUTDOWN privileges. | |
| char * | Status (void) |
| Returns a character string containing information similar to that provided by the mysqladmin status command. | |
| BOOL | StoreResult (CMyMySQLPPResult *result) |
| Reads the entire result of a query. | |
| unsigned long | ThreadID (void) |
| Returns the thread ID of current connection. | |
| BOOL | UseResult (CMyMySQLPPResult *result) |
| Initiates a result set retrieval but does not actually read the result set into the client like StoreResult() does. | |
|
|
Class constructor.
Definition at line 34 of file MyMySQLPPConnection.cpp. |
|
|
Class destructor.
Definition at line 40 of file MyMySQLPPConnection.cpp. References Close(). |
|
|
Returns the number of rows changed by the last UPDATE, deleted by the last DELETE or inserted by the last INSERT statement.
Definition at line 128 of file MyMySQLPPConnection.cpp. |
|
||||||||||||||||
|
Changes the user and causes the database specified by db to become the default (current) database.
Definition at line 141 of file MyMySQLPPConnection.cpp. |
|
|
Returns the default character set for the current connection.
Definition at line 151 of file MyMySQLPPConnection.cpp. |
|
|
Disconnects from server.
Definition at line 70 of file MyMySQLPPConnection.cpp. Referenced by ~CMyMySQLPPConnection(). |
|
||||||||||||||||||||||||||||||||
|
Connects to server.
Definition at line 55 of file MyMySQLPPConnection.cpp. |
|
|
Drops the database named by the db parameter.
Definition at line 248 of file MyMySQLPPConnection.cpp. |
|
|
Returns the error message for the most recently invoked API function that can succeed or fail.
Definition at line 171 of file MyMySQLPPConnection.cpp. |
|
|
Returns the error code for the most recently invoked API function that can succeed or fail.
Definition at line 161 of file MyMySQLPPConnection.cpp. Referenced by StoreResult(). |
|
|
Returns a string that represents the client library version.
Definition at line 90 of file MyMySQLPPConnection.cpp. |
|
|
Returns a string describing the type of connection in use.
Definition at line 98 of file MyMySQLPPConnection.cpp. |
|
|
Returns the protocol version used by current connection.
Definition at line 108 of file MyMySQLPPConnection.cpp. |
|
|
Returns a string that represents the server version number.
Definition at line 118 of file MyMySQLPPConnection.cpp. |
|
|
Retrieves a string providing information about the most recently executed query.
Definition at line 191 of file MyMySQLPPConnection.cpp. |
|
|
Returns the ID generated for an AUTO_INCREMENT column by the previous query.
Definition at line 181 of file MyMySQLPPConnection.cpp. |
|
|
Asks the server to kill the thread specified by pid.
Definition at line 202 of file MyMySQLPPConnection.cpp. |
|
||||||||||||
|
Returns a result set consisting of database names on the server that match the simple regular expression specified by the wild parameter.
Definition at line 214 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), and CMyMySQLPPResult::Free(). |
|
||||||||||||||||
|
Returns a result set consisting of field names in the given table that match the simple regular expression specified by the wild parameter.
Definition at line 232 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), and CMyMySQLPPResult::Free(). |
|
|
Returns a result set describing the current server threads.
Definition at line 259 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), and CMyMySQLPPResult::Free(). |
|
||||||||||||
|
Returns a result set consisting of table names in the current database that match the simple regular expression specified by the wild parameter.
Definition at line 276 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), and CMyMySQLPPResult::Free(). |
|
||||||||||||
|
Can be used to set extra connect options and affect behaviour for a connection.
Definition at line 293 of file MyMySQLPPConnection.cpp. |
|
|
Checks if server is still alive.
Definition at line 80 of file MyMySQLPPConnection.cpp. |
|
|
Executes the SQL query pointed to by the null-terminated string query. Cannot be used for queries that contain binary data - use RealQuery() instead.
Definition at line 304 of file MyMySQLPPConnection.cpp. |
|
||||||||||||||||
|
This function is used to create a legal SQL string that you can use in a SQL statement.
Definition at line 317 of file MyMySQLPPConnection.cpp. |
|
||||||||||||
|
Executes the SQL query pointed to by query, which should be a string length bytes long - binary safe version of Query().
Definition at line 329 of file MyMySQLPPConnection.cpp. |
|
|
Asks the MySQL server to reload the grant tables. The connected user must have the RELOAD privilege.
Definition at line 339 of file MyMySQLPPConnection.cpp. |
|
|
Causes the database specified by db to become the default (current) database on the connection.
Definition at line 350 of file MyMySQLPPConnection.cpp. |
|
|
Asks the database server to shut down. The connected user must have SHUTDOWN privileges.
Definition at line 360 of file MyMySQLPPConnection.cpp. |
|
|
Returns a character string containing information similar to that provided by the mysqladmin status command.
Definition at line 370 of file MyMySQLPPConnection.cpp. |
|
|
Reads the entire result of a query.
Definition at line 381 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), ErrorNumber(), and CMyMySQLPPResult::Free(). |
|
|
Returns the thread ID of current connection.
Definition at line 398 of file MyMySQLPPConnection.cpp. |
|
|
Initiates a result set retrieval but does not actually read the result set into the client like StoreResult() does.
Definition at line 409 of file MyMySQLPPConnection.cpp. References CMyMySQLPPResult::Attach(), and CMyMySQLPPResult::Free(). |
1.3-rc3