14 TorcDB(
const QString &DatabaseName,
const QString &DatabaseType);
21 void SetSetting (
const QString &Name,
const QString &Value);
25 static bool DebugError (QSqlDatabase *Database);
TorcDB(const QString &DatabaseName, const QString &DatabaseType)
bool IsValid(void)
Returns true if the datbase has been opened/created.
void CloseThreadConnection(void)
Close the database connection for the current thread.
QString GetThreadConnection(void)
Retrieve a database connection for the current thread.
Base Sql database access class.
QHash< QThread *, QString > m_connectionMap
virtual bool InitDatabase(void)=0
void CloseConnections(void)
Close all cached database connections.
void SetSetting(const QString &Name, const QString &Value)
Set the setting Name to the value Value.
void LoadSettings(QMap< QString, QString > &Settings)
Retrieve all persistent settings stored in the database.
static bool DebugError(QSqlQuery *Query)
Log database errors following a failed query.