MythTV
master
|
#include <QSqlDatabase>
#include <QSqlRecord>
#include <QSqlError>
#include <QVariant>
#include <QSqlQuery>
#include <QRegExp>
#include <QDateTime>
#include <QMutex>
#include <QList>
#include "mythbaseexp.h"
#include "mythdbparams.h"
Go to the source code of this file.
Classes | |
class | MSqlDatabase |
QSqlDatabase wrapper, used by MSqlQuery. Do not use directly. More... | |
class | MDBManager |
DB connection pool, used by MSqlQuery. Do not use directly. More... | |
struct | _MSqlQueryInfo |
MSqlDatabase Info, used by MSqlQuery. Do not use directly. More... | |
class | MSqlQuery |
QSqlQuery wrapper that fetches a DB connection from the connection pool. More... | |
Macros | |
#define | REUSE_CONNECTION 1 |
Typedefs | |
typedef struct _MSqlQueryInfo | MSqlQueryInfo |
MSqlDatabase Info, used by MSqlQuery. Do not use directly. More... | |
typedef QMap< QString, QVariant > | MSqlBindings |
typedef for a map of string -> string bindings for generic queries. More... | |
Functions | |
MBASE_PUBLIC bool | TestDatabase (QString dbHostName, QString dbUserName, QString dbPassword, QString dbName="mythconverg", int dbPort=3306) |
MBASE_PUBLIC void | MSqlAddMoreBindings (MSqlBindings &output, MSqlBindings &addfrom) |
Add the entries in addfrom to the map in output. More... | |
MBASE_PUBLIC void | MSqlEscapeAsAQuery (QString &query, MSqlBindings &bindings) |
Given a partial query string and a bindings object, escape the string. More... | |
#define REUSE_CONNECTION 1 |
Definition at line 17 of file mythdbcon.h.
typedef struct _MSqlQueryInfo MSqlQueryInfo |
MSqlDatabase Info, used by MSqlQuery. Do not use directly.
typedef QMap<QString, QVariant> MSqlBindings |
typedef for a map of string -> string bindings for generic queries.
Definition at line 98 of file mythdbcon.h.
MBASE_PUBLIC bool TestDatabase | ( | QString | dbHostName, |
QString | dbUserName, | ||
QString | dbPassword, | ||
QString | dbName = "mythconverg" , |
||
int | dbPort = 3306 |
||
) |
Definition at line 36 of file mythdbcon.cpp.
Referenced by Myth::TestDBSettings().
MBASE_PUBLIC void MSqlAddMoreBindings | ( | MSqlBindings & | output, |
MSqlBindings & | addfrom | ||
) |
Add the entries in addfrom to the map in output.
Definition at line 908 of file mythdbcon.cpp.
Referenced by ProgLister::FillItemList().
MBASE_PUBLIC void MSqlEscapeAsAQuery | ( | QString & | query, |
MSqlBindings & | bindings | ||
) |
Given a partial query string and a bindings object, escape the string.
Definition at line 929 of file mythdbcon.cpp.
Referenced by PhrasePopup::recordClicked(), and PowerSearchPopup::recordClicked().