|
iLand
|
A helper class for simple execution of database commands. More...
#include <sqlhelper.h>
Public Member Functions | |
| SqlHelper () | |
Static Public Member Functions | |
| static QVariant | queryValue (const QString &query, const QSqlDatabase &database) |
| query a single value from database More... | |
| static bool | executeSql (const QString &query, const QSqlDatabase &database) |
| execute DML (insert, update, ...) More... | |
A helper class for simple execution of database commands.
| SqlHelper::SqlHelper | ( | ) |
|
static |
execute DML (insert, update, ...)
execute 'query' against database 'database'.
Use for insert, update, ... statements without return values.
|
static |
query a single value from database
execute 'query' against database 'database'.
The first column of the first row are returned. A Null-Variant is returned, if the query has no results.