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

Method getStacks

sql/notebooktable.cpp:816–827  ·  view source on GitHub ↗

Get a list of stack names

Source from the content-addressed store, hash-verified

814
815// Get a list of stack names
816void NotebookTable::getStacks(QStringList &stacks) {
817 NSqlQuery query(db);
818 db->lockForRead();
819 query.prepare("Select distinct data from DataStore where key=:key");
820 query.bindValue(":key", NOTEBOOK_STACK);
821 query.exec();
822 while (query.next()) {
823 stacks.append(query.value(0).toString());
824 }
825 query.finish();
826 db->unlock();
827}
828
829
830

Callers 1

NNotebookViewMethod · 0.45

Calls 7

lockForReadMethod · 0.80
bindValueMethod · 0.80
valueMethod · 0.80
prepareMethod · 0.45
execMethod · 0.45
toStringMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected