| 19 | } |
| 20 | |
| 21 | bool PreparedStatement::bind(int position, const std::string& t_str) { |
| 22 | if (sqlite3_bind_text(m_statement, position, t_str.c_str(), t_str.size(), SQLITE_TRANSIENT) != SQLITE_OK) { |
| 23 | return false; |
| 24 | } |
| 25 | return true; |
| 26 | } |
| 27 | |
| 28 | bool PreparedStatement::bind(int position, int val) { |
| 29 | if (sqlite3_bind_int(m_statement, position, val) != SQLITE_OK) { |