| 2364 | } |
| 2365 | |
| 2366 | size_t CountRowsForEntry(sqlite3_stmt* sql_stmt, |
| 2367 | const sqlite3_int64 row_id) const { |
| 2368 | Sqlite3StmtContext context(sql_stmt); |
| 2369 | SQLITE3_CALL(sqlite3_bind_int64(sql_stmt, 1, row_id)); |
| 2370 | if (SQLITE3_CALL(sqlite3_step(sql_stmt)) == SQLITE_ROW) { |
| 2371 | return static_cast<size_t>(sqlite3_column_int64(sql_stmt, 0)); |
| 2372 | } |
| 2373 | return 0; |
| 2374 | } |
| 2375 | |
| 2376 | size_t SumColumn(const std::string& column, const std::string& table) const { |
| 2377 | const std::string sql = |
nothing calls this directly
no outgoing calls
no test coverage detected