Mercurial > hg > syntilista
comparison src/util.h @ 255:55581d90c55d
Change API for slCheckAndReportSQLError().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 10 Oct 2018 13:21:51 +0300 |
parents | eadffc38ab43 |
children | df3f902588af |
comparison
equal
deleted
inserted
replaced
254:0e0ad52994ca | 255:55581d90c55d |
---|---|
37 const QString slDateTimeToStr(const QDateTime &val); | 37 const QString slDateTimeToStr(const QDateTime &val); |
38 | 38 |
39 void slLog(const QString &mtype, const QString &msg); | 39 void slLog(const QString &mtype, const QString &msg); |
40 int slErrorMsg(const QString &title, const QString &msg); | 40 int slErrorMsg(const QString &title, const QString &msg); |
41 | 41 |
42 bool slCheckAndReportSQLError(const QString where, const QSqlError &err, bool report = false); | 42 bool slCheckAndReportSQLError(const QSqlQuery &query, const QString where, bool report = false); |
43 bool slConditionallyCreateSQLTables(QSqlDatabase &db, const SLSQLSchemaDef *schema, const int nschema); | 43 bool slConditionallyCreateSQLTables(QSqlDatabase &db, const SLSQLSchemaDef *schema, const int nschema); |
44 | 44 |
45 | 45 |
46 #endif // SL_UTIL_H | 46 #endif // SL_UTIL_H |