| 2334 | } |
| 2335 | |
| 2336 | bool ExistsRowString(sqlite3_stmt* sql_stmt, |
| 2337 | const std::string& row_entry) const { |
| 2338 | Sqlite3StmtContext context(sql_stmt); |
| 2339 | SQLITE3_CALL(sqlite3_bind_text(sql_stmt, |
| 2340 | 1, |
| 2341 | row_entry.c_str(), |
| 2342 | static_cast<int>(row_entry.size()), |
| 2343 | SQLITE_STATIC)); |
| 2344 | return SQLITE3_CALL(sqlite3_step(sql_stmt)) == SQLITE_ROW; |
| 2345 | } |
| 2346 | |
| 2347 | size_t CountRows(const std::string& table) const { |
| 2348 | const std::string sql = |