| 1950 | } |
| 1951 | |
| 1952 | void CreateFrameTable() const { |
| 1953 | const std::string sql = |
| 1954 | "CREATE TABLE IF NOT EXISTS frames" |
| 1955 | " (frame_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," |
| 1956 | " rig_id INTEGER NOT NULL," |
| 1957 | " FOREIGN KEY(rig_id) REFERENCES rigs(rig_id) ON DELETE CASCADE);"; |
| 1958 | |
| 1959 | SQLITE3_EXEC(database_, sql.c_str(), nullptr); |
| 1960 | } |
| 1961 | |
| 1962 | void CreateFrameDataTable() const { |
| 1963 | const std::string sql = |
nothing calls this directly
no outgoing calls
no test coverage detected