| 2019 | } |
| 2020 | |
| 2021 | void CreateDescriptorsTable() const { |
| 2022 | const std::string sql = |
| 2023 | "CREATE TABLE IF NOT EXISTS descriptors" |
| 2024 | " (image_id INTEGER PRIMARY KEY NOT NULL," |
| 2025 | " type INTEGER NOT NULL," |
| 2026 | " rows INTEGER NOT NULL," |
| 2027 | " cols INTEGER NOT NULL," |
| 2028 | " data BLOB," |
| 2029 | " FOREIGN KEY(image_id) REFERENCES images(image_id) ON DELETE " |
| 2030 | "CASCADE);"; |
| 2031 | |
| 2032 | SQLITE3_EXEC(database_, sql.c_str(), nullptr); |
| 2033 | } |
| 2034 | |
| 2035 | void CreateMatchesTable() const { |
| 2036 | const std::string sql = |
nothing calls this directly
no outgoing calls
no test coverage detected