MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / ~Database

Method ~Database

src/main/database.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147Database::~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.
158void Database::registerFileSystem(std::unique_ptr<FileSystem> fs) {

Callers

nothing calls this directly

Calls 1

checkpointMethod · 0.45

Tested by

no test coverage detected