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

Method CreateFrameDataTable

src/colmap/scene/database_sqlite.cc:1962–1975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1960 }
1961
1962 void CreateFrameDataTable() const {
1963 const std::string sql =
1964 "CREATE TABLE IF NOT EXISTS frame_data"
1965 " (frame_id INTEGER NOT NULL,"
1966 " data_id INTEGER NOT NULL,"
1967 " sensor_id INTEGER NOT NULL,"
1968 " sensor_type INTEGER NOT NULL,"
1969 " FOREIGN KEY(frame_id) REFERENCES frames(frame_id) ON DELETE "
1970 "CASCADE);"
1971 "CREATE UNIQUE INDEX IF NOT EXISTS frame_sensor_assignment ON "
1972 " frame_data(data_id, sensor_type);";
1973
1974 SQLITE3_EXEC(database_, sql.c_str(), nullptr);
1975 }
1976
1977 void CreateImageTable() const {
1978 const std::string sql = StringPrintf(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected