| 1188 | // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string |
| 1189 | template <typename... Args> |
| 1190 | boost::optional<int> execAndReturnFirstInt(const std::string& statement, Args&&... args) const { |
| 1191 | if (m_db) { |
| 1192 | PreparedStatement stmt(statement, m_db, false, args...); |
| 1193 | return stmt.execAndReturnFirstInt(); |
| 1194 | } |
| 1195 | return boost::none; |
| 1196 | } |
| 1197 | |
| 1198 | // execute a statement and return the first (if any) value as a string |
| 1199 | // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string |
nothing calls this directly
no test coverage detected