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

Method findByStack

sql/notebooktable.cpp:779–791  ·  view source on GitHub ↗

Find a notebook by the stack name

Source from the content-addressed store, hash-verified

777
778// Find a notebook by the stack name
779void NotebookTable::findByStack(QList<qint32> &lids, QString stackName) {
780 NSqlQuery query(db);
781 db->lockForRead();
782 query.prepare("Select lid from DataStore where key=:key and data=:name");
783 query.bindValue(":key", NOTEBOOK_STACK);
784 query.bindValue(":name", stackName);
785 query.exec();
786 while(query.next()) {
787 lids.append(query.value(0).toInt());
788 }
789 query.finish();
790 db->unlock();
791}
792
793
794

Callers 2

dropEventMethod · 0.45

Calls 6

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

Tested by

no test coverage detected