MythTV
master
|
QSqlDatabase wrapper, used by MSqlQuery. Do not use directly. More...
#include <libmythbase/mythdbcon.h>
Public Member Functions | |
MSqlDatabase (QString name, QString driver="QMYSQL") | |
~MSqlDatabase (void) | |
bool | OpenDatabase (bool skipdb=false) |
void | SetDBParams (const DatabaseParams ¶ms) |
Private Member Functions | |
bool | isOpen (void) |
bool | KickDatabase (void) |
QString | GetConnectionName (void) const |
QSqlDatabase | db (void) const |
bool | Reconnect (void) |
void | InitSessionVars (void) |
Private Attributes | |
QString | m_name |
QString | m_driver |
QSqlDatabase | m_db |
QDateTime | m_lastDBKick |
DatabaseParams | m_dbparms |
Friends | |
class | MDBManager |
class | MSqlQuery |
QSqlDatabase wrapper, used by MSqlQuery. Do not use directly.
Definition at line 25 of file mythdbcon.h.
|
explicit |
Definition at line 84 of file mythdbcon.cpp.
MSqlDatabase::~MSqlDatabase | ( | void | ) |
Definition at line 109 of file mythdbcon.cpp.
Definition at line 132 of file mythdbcon.cpp.
Referenced by MDBManager::popConnection().
|
inline |
Definition at line 34 of file mythdbcon.h.
|
private |
Definition at line 122 of file mythdbcon.cpp.
Referenced by MSqlQuery::exec(), MSqlQuery::prepare(), and MSqlQuery::testDBConnection().
|
private |
Definition at line 254 of file mythdbcon.cpp.
Referenced by MSqlQuery::ChannelCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().
|
inlineprivate |
Definition at line 40 of file mythdbcon.h.
|
inlineprivate |
Definition at line 41 of file mythdbcon.h.
Referenced by MSqlQuery::ChannelCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().
|
private |
Definition at line 264 of file mythdbcon.cpp.
Referenced by MSqlQuery::Reconnect().
|
private |
Definition at line 279 of file mythdbcon.cpp.
Referenced by OpenDatabase(), and Reconnect().
|
friend |
Definition at line 27 of file mythdbcon.h.
|
friend |
Definition at line 28 of file mythdbcon.h.
|
private |
Definition at line 46 of file mythdbcon.h.
Referenced by MDBManager::CloseDatabases(), GetConnectionName(), MSqlDatabase(), OpenDatabase(), and ~MSqlDatabase().
|
private |
Definition at line 47 of file mythdbcon.h.
Referenced by MSqlDatabase().
|
private |
Definition at line 48 of file mythdbcon.h.
Referenced by MDBManager::CloseDatabases(), db(), MSqlQuery::exec(), MSqlQuery::InitCon(), InitSessionVars(), isOpen(), KickDatabase(), MSqlDatabase(), OpenDatabase(), Reconnect(), and ~MSqlDatabase().
|
private |
Definition at line 49 of file mythdbcon.h.
Referenced by KickDatabase(), MSqlDatabase(), MDBManager::PurgeIdleConnections(), and MDBManager::pushConnection().
|
private |
Definition at line 50 of file mythdbcon.h.
Referenced by OpenDatabase(), and SetDBParams().