Abstract base class for database connections. MySqlConnection SqlLiteConnection. More...
#include <Connection.h>
Public Member Functions | |
Connection (const String &serverOrIP, const String &database, const String &uid, const String &pw) | |
virtual void | Open ()=0 |
Open the connection, ready for use after Open. | |
virtual void | Close ()=0 |
Close the connection, free resources. | |
virtual void | ChangeDatabase (const String &db)=0 |
Change to a different database. | |
virtual TransactionPtr | BeginTransaction ()=0 |
virtual CommandPtr | CreateCommand ()=0 |
virtual CommandPtr | CreateCommand (const String &cmdText)=0 |
virtual int | ExecuteNonQuery (const String &sql)=0 |
virtual RecordSetPtr | ExecuteQuery (const String &sql)=0 |
virtual void | RegisterThread ()=0 |
If multiple threads are accessing the connection, each thread needs to call this. | |
virtual void | RegisterThreadExit ()=0 |
If multiple threads are accessing the connection, each thread needs to call this on exit. | |
virtual void | AllowOutOfOrderCommandParameters (bool allow)=0 |
Setting to true requires Command's to query the parameter names from the stored procedure -- default: false. | |
virtual void | CheckMem () const |
virtual void | ValidateMem () const |
Static Public Member Functions | |
static ConnectionPtr | GetConnection (const String &connectString) |
Protected Attributes | |
String | m_host |
String | m_database |
String | m_uid |
String | m_pw |
Abstract base class for database connections. MySqlConnection SqlLiteConnection.
Definition at line 47 of file Connection.h.