MCPcopy Create free account
hub / github.com/colmap/colmap / CountRowsForEntry

Method CountRowsForEntry

src/colmap/scene/database_sqlite.cc:2366–2374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected