21 #include <QCoreApplication>
22 #include <QSqlDatabase>
74 static QSqlDatabase
Database(){
return get().iDatabase();}
83 static bool exists(QString column, QString table, QString checkColumn,
86 return get().iexists(column, table, checkColumn, value, match);
99 static bool singleUpdate(QString table, QString column, QString value,
100 QString checkColumn, QString checkvalue,
Db::matchType match){
101 return get().isingleUpdate(table,column,value,checkColumn,checkvalue,match);
111 static QString
singleSelect(QString column, QString table, QString checkColumn,
113 return get().isingleSelect(column,table,checkColumn,value,match);
124 static QVector<QString>
multiSelect(QVector<QString> columns, QString table,
126 return get().imultiSelect(columns,table,checkColumn,value,match);
134 static QVector<QString>
multiSelect(QVector<QString> columns, QString table){
135 return get().imultiSelect(columns, table);
143 static QVector<QString>
customQuery(QString query,
int returnValues){
144 return get().icustomQuery(query, returnValues);
151 QSqlDatabase iDatabase();
152 bool iexists(QString column, QString table, QString checkColumn,
154 bool isingleUpdate(QString table, QString column, QString value,
155 QString checkColumn, QString checkvalue,
Db::matchType match);
156 QString isingleSelect(QString column, QString table, QString checkColumn,
158 QVector<QString> imultiSelect(QVector<QString> columns, QString table,
160 QVector<QString> imultiSelect(QVector<QString> columns, QString table);
161 QVector<QString> icustomQuery(QString query,
int returnValues);
165 Db(
Db const&) =
delete;
166 void operator=(
Db const&) =
delete;