FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
#include "sql.h"
#include <stdexcept>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>
Go to the source code of this file.
Classes | |
class | qtsql::SqlQueryError |
Provides a std::runtime_error that can convey a QSqlError object. More... | |
Namespaces | |
qtsql | |
Functions | |
QSqlQuery | qtsql::execSqlCode (const QString &sqlCode, const QSqlDatabase &db) |
Execute SQL statements in code use databse connection db . More... | |
QSqlQuery | qtsql::execSqlCodeInTransaction (const QString &sqlCode, QSqlDatabase db) |
Same as qtsql::execSqlCode() but execution performs inside a transaction. More... | |
void | qtsql::throwIfError (const QSqlQuery &qry) |
Throw SqlQueryError if SQL query qry has error. More... | |