| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected