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

Method CloseImpl

src/colmap/scene/database_sqlite.cc:535–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 }
534
535 void CloseImpl() {
536 if (database_ != nullptr) {
537 FinalizeSQLStatements();
538 if (database_entry_deleted_) {
539 SQLITE3_EXEC(database_, "VACUUM", nullptr);
540 database_entry_deleted_ = false;
541 }
542 SQLITE3_CALL(sqlite3_close_v2(database_));
543 database_ = nullptr;
544 }
545 }
546
547 ~SqliteDatabase() override { CloseImpl(); }
548

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected