MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / openAllNotebooks

Method openAllNotebooks

sql/notebooktable.cpp:1117–1125  ·  view source on GitHub ↗

Open all notebooks. Really we just delete the NOTEBOOK_IS_CLOSED record since the default is to be open.

Source from the content-addressed store, hash-verified

1115// NOTEBOOK_IS_CLOSED record since the default is to be
1116// open.
1117void NotebookTable::openAllNotebooks() {
1118 NSqlQuery query(db);
1119 db->lockForWrite();
1120 query.prepare("delete from DataStore where key=:key");
1121 query.bindValue(":key", NOTEBOOK_IS_CLOSED);
1122 query.exec();
1123 query.finish();
1124 db->unlock();
1125}
1126
1127
1128

Callers 1

okButtonPressedMethod · 0.80

Calls 5

lockForWriteMethod · 0.80
bindValueMethod · 0.80
prepareMethod · 0.45
execMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected