MythTV  master
Classes | Macros | Functions | Variables
mythdbcon.cpp File Reference
#include <unistd.h>
#include <cstdlib>
#include <QCoreApplication>
#include <QElapsedTimer>
#include <QSemaphore>
#include <QSqlDriver>
#include <QSqlError>
#include <QSqlField>
#include <QSqlRecord>
#include <QVector>
#include <utility>
#include "compat.h"
#include "mythdbcon.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "mythsystemlegacy.h"
#include "exitcodes.h"
#include "mthread.h"
#include "mythdate.h"
#include "portchecker.h"
#include "mythmiscutil.h"
Include dependency graph for mythdbcon.cpp:

Go to the source code of this file.

Classes

struct  Holder
 

Macros

#define DEBUG_RECONNECT   0
 

Functions

bool TestDatabase (const QString &dbHostName, const QString &dbUserName, QString dbPassword, QString dbName, int dbPort)
 
static void InitMSqlQueryInfo (MSqlQueryInfo &qi)
 
void MSqlAddMoreBindings (MSqlBindings &output, MSqlBindings &addfrom)
 Add the entries in addfrom to the map in output. More...
 
void MSqlEscapeAsAQuery (QString &query, MSqlBindings &bindings)
 Given a partial query string and a bindings object, escape the string. More...
 

Variables

static const uint kPurgeTimeout = 60 * 60
 

Macro Definition Documentation

◆ DEBUG_RECONNECT

#define DEBUG_RECONNECT   0

Definition at line 30 of file mythdbcon.cpp.

Function Documentation

◆ TestDatabase()

bool TestDatabase ( const QString &  dbHostName,
const QString &  dbUserName,
QString  dbPassword,
QString  dbName,
int  dbPort 
)

Definition at line 37 of file mythdbcon.cpp.

Referenced by Myth::TestDBSettings().

◆ InitMSqlQueryInfo()

static void InitMSqlQueryInfo ( MSqlQueryInfo qi)
static

Definition at line 505 of file mythdbcon.cpp.

Referenced by MSqlQuery::ChannelCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().

◆ MSqlAddMoreBindings()

void MSqlAddMoreBindings ( MSqlBindings output,
MSqlBindings addfrom 
)

Add the entries in addfrom to the map in output.

Definition at line 906 of file mythdbcon.cpp.

Referenced by ProgLister::FillItemList().

◆ MSqlEscapeAsAQuery()

void MSqlEscapeAsAQuery ( QString &  query,
MSqlBindings bindings 
)

Given a partial query string and a bindings object, escape the string.

Definition at line 927 of file mythdbcon.cpp.

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

Variable Documentation

◆ kPurgeTimeout

const uint kPurgeTimeout = 60 * 60
static

Definition at line 35 of file mythdbcon.cpp.

Referenced by MDBManager::PurgeIdleConnections().