94 template<
typename T =
int>
99 throw std::runtime_error {
"No last ID has been reported." };
106 throw std::runtime_error {
"Cannot convert last ID." };
QSqlQuery RunTextQuery(const QSqlDatabase &db, const QString &text)
Runs the given query text on the given db.
QString LoadQuery(const QString &pluginName, const QString &filename)
Loads the query text from the given resource file.
QString GenConnectionName(const QString &base)
Generates an unique thread-safe connection name.
void RunQuery(const QSqlDatabase &db, const QString &pluginName, const QString &filename)
Loads the query from the given resource file and runs it.
T GetLastId(const QSqlQuery &query)
Gets the last insert ID for the given query.
Container< T > Filter(const Container< T > &c, F f)