| 230 | } |
| 231 | |
| 232 | void SqlFile_Impl::removeIndexes() { |
| 233 | if (m_connectionOpen) { |
| 234 | try { |
| 235 | execAndThrowOnError("DROP INDEX IF EXISTS rddMTR;"); |
| 236 | } catch (const std::runtime_error& e) { |
| 237 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 238 | } |
| 239 | |
| 240 | try { |
| 241 | execAndThrowOnError("DROP INDEX IF EXISTS redRD;"); |
| 242 | } catch (const std::runtime_error& e) { |
| 243 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 244 | } |
| 245 | |
| 246 | try { |
| 247 | execAndThrowOnError("DROP INDEX IF EXISTS rdTI;"); |
| 248 | } catch (const std::runtime_error& e) { |
| 249 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 250 | } |
| 251 | |
| 252 | try { |
| 253 | execAndThrowOnError("DROP INDEX IF EXISTS rdDI;"); |
| 254 | } catch (const std::runtime_error& e) { |
| 255 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 256 | } |
| 257 | |
| 258 | try { |
| 259 | execAndThrowOnError("DROP INDEX IF EXISTS dmhdHRI;"); |
| 260 | } catch (const std::runtime_error& e) { |
| 261 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 262 | } |
| 263 | |
| 264 | try { |
| 265 | execAndThrowOnError("DROP INDEX IF EXISTS dmhrMNI;"); |
| 266 | } catch (const std::runtime_error& e) { |
| 267 | LOG(Trace, "Error dropping index: " + std::string(e.what())); |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | void SqlFile_Impl::createIndexes() { |
| 273 | if (m_connectionOpen) { |
nothing calls this directly
no test coverage detected