| 64 | } |
| 65 | |
| 66 | boost::optional<int> PreparedStatement::execAndReturnFirstInt() const { |
| 67 | boost::optional<int> value; |
| 68 | if (m_db) { |
| 69 | int code = sqlite3_step(m_statement); |
| 70 | if (code == SQLITE_ROW) { |
| 71 | value = sqlite3_column_int(m_statement, 0); |
| 72 | } |
| 73 | } |
| 74 | return value; |
| 75 | } |
| 76 | |
| 77 | boost::optional<std::string> PreparedStatement::execAndReturnFirstString() const { |
| 78 | boost::optional<std::string> value; |
no outgoing calls
no test coverage detected