| 145 | } |
| 146 | |
| 147 | Database::~Database() { |
| 148 | if (!dbConfig->readOnly && dbConfig->forceCheckpointOnClose) { |
| 149 | try { |
| 150 | ClientContext clientContext(this); |
| 151 | transactionManager->checkpoint(clientContext); |
| 152 | } catch (...) {} // NOLINT |
| 153 | } |
| 154 | dbLifeCycleManager->isDatabaseClosed = true; |
| 155 | } |
| 156 | |
| 157 | // NOLINTNEXTLINE(readability-make-member-function-const): Semantically non-const function. |
| 158 | void Database::registerFileSystem(std::unique_ptr<FileSystem> fs) { |
nothing calls this directly
no test coverage detected