|
MythTV master
|
#include <unistd.h>#include <cstdlib>#include <QCoreApplication>#include <QElapsedTimer>#include <QRegularExpression>#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 "mythrandom.h"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, const MSqlBindings &bindings) |
| Given a partial query string and a bindings object, escape the string. More... | |
Variables | |
| static constexpr std::chrono::seconds | kPurgeTimeout { 1h } |
| static QMutex | sMutex |
| #define DEBUG_RECONNECT 0 |
Definition at line 32 of file mythdbcon.cpp.
|
static |
Definition at line 521 of file mythdbcon.cpp.
Referenced by MSqlQuery::ChannelCon(), MSqlQuery::InitCon(), and MSqlQuery::SchedCon().
| void MSqlAddMoreBindings | ( | MSqlBindings & | output, |
| MSqlBindings & | addfrom | ||
| ) |
Add the entries in addfrom to the map in output.
Definition at line 983 of file mythdbcon.cpp.
Referenced by ProgLister::FillItemList().
| void MSqlEscapeAsAQuery | ( | QString & | query, |
| const MSqlBindings & | bindings | ||
| ) |
Given a partial query string and a bindings object, escape the string.
Definition at line 1004 of file mythdbcon.cpp.
Referenced by PhrasePopup::recordClicked(), and PowerSearchPopup::recordClicked().
| bool TestDatabase | ( | const QString & | dbHostName, |
| const QString & | dbUserName, | ||
| QString | dbPassword, | ||
| QString | dbName, | ||
| int | dbPort | ||
| ) |
Definition at line 41 of file mythdbcon.cpp.
Referenced by V2Config::GetDatabaseStatus(), V2Myth::SetConnectionInfo(), V2Config::SetDatabaseCredentials(), and V2Myth::TestDBSettings().
|
staticconstexpr |
Definition at line 37 of file mythdbcon.cpp.
Referenced by MDBManager::PurgeIdleConnections().
|
static |
Definition at line 39 of file mythdbcon.cpp.
Referenced by TestDatabase().