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

Method removeFromStack

sql/notebooktable.cpp:850–859  ·  view source on GitHub ↗

Remove this notebook from a stack

Source from the content-addressed store, hash-verified

848
849// Remove this notebook from a stack
850void NotebookTable::removeFromStack(qint32 lid) {
851 NSqlQuery query(db);
852 db->lockForWrite();
853 query.prepare("delete from DataStore where lid=:lid and key=:key");
854 query.bindValue(":lid", lid);
855 query.bindValue(":key", NOTEBOOK_STACK);
856 query.exec();
857 query.finish();
858 db->unlock();
859}
860
861
862

Callers 1

Calls 5

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

Tested by

no test coverage detected