Subversion Repositories public iLand

Rev

Rev 286 | Rev 639 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef SQLHELPER_H
#define SQLHELPER_H
#include <QtSql>

class SqlHelper
{
public:
    SqlHelper();
    static QVariant queryValue(const QString &query, const QSqlDatabase &database); ///< query a single value from database
    static bool executeSql(const QString &query, const QSqlDatabase &database); ///< execute DML (insert, update, ...)
};

#endif // SQLHELPER_H