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

Method CreateRigTable

src/colmap/scene/database_sqlite.cc:1911–1922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1909 }
1910
1911 void CreateRigTable() const {
1912 const std::string sql =
1913 "CREATE TABLE IF NOT EXISTS rigs"
1914 " (rig_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,"
1915 " ref_sensor_id INTEGER NOT NULL,"
1916 " ref_sensor_type INTEGER NOT "
1917 "NULL);"
1918 "CREATE UNIQUE INDEX IF NOT EXISTS rig_ref_sensor_assignment ON "
1919 " rigs(ref_sensor_id, ref_sensor_type);";
1920
1921 SQLITE3_EXEC(database_, sql.c_str(), nullptr);
1922 }
1923
1924 void CreateRigSensorsTable() const {
1925 const std::string sql =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected