mythdbcon.h File Reference

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...

Typedefs

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.

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.
MBASE_PUBLIC void MSqlEscapeAsAQuery (QString &query, MSqlBindings &bindings)
 Given a partial query string and a bindings object, escape the string.

Typedef Documentation

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 100 of file mythdbcon.h.


Function Documentation

MBASE_PUBLIC bool TestDatabase ( QString  dbHostName,
QString  dbUserName,
QString  dbPassword,
QString  dbName = "mythconverg",
int  dbPort = 3306 
)

Definition at line 31 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 925 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 946 of file mythdbcon.cpp.

Referenced by PowerSearchPopup::recordClicked(), and PhrasePopup::recordClicked().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon Feb 6 06:41:43 2012 for MythTV by  doxygen 1.6.3