| 75 | } |
| 76 | |
| 77 | boost::optional<std::string> PreparedStatement::execAndReturnFirstString() const { |
| 78 | boost::optional<std::string> value; |
| 79 | if (m_db) { |
| 80 | int code = sqlite3_step(m_statement); |
| 81 | if (code == SQLITE_ROW) { |
| 82 | value = columnText(sqlite3_column_text(m_statement, 0)); |
| 83 | } |
| 84 | } |
| 85 | return value; |
| 86 | } |
| 87 | |
| 88 | boost::optional<std::vector<double>> PreparedStatement::execAndReturnVectorOfDouble() const { |
| 89 |