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