LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
util.h File Reference
#include <QVariant>
#include <QSqlQuery>
#include <QtDebug>
#include "dbconfig.h"
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LC::Util::SqliteDatabaseConfig
 

Namespaces

namespace  LC
 
namespace  LC::Util
 

Functions

QSqlQuery LC::Util::RunTextQuery (const QSqlDatabase &db, const QString &text)
 Runs the given query text on the given db.
 
QString LC::Util::LoadQuery (const QString &plugin, const QString &filename)
 Loads the query text from the given resource file.
 
void LC::Util::RunQuery (const QSqlDatabase &db, const QString &plugin, const QString &filename)
 Loads the query from the given resource file and runs it.
 
template<typename T = int>
LC::Util::GetLastId (const QSqlQuery &query)
 Gets the last insert ID for the given query.
 
QString LC::Util::GenConnectionName (const QString &base)
 Generates an unique thread-safe connection name.
 
QSqlDatabase LC::Util::OpenSqliteDatabase (const SqliteDatabaseConfig &config)