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

Method resetDirtyLocalNotebooks

sql/notebooktable.cpp:1187–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185
1186
1187void NotebookTable::resetDirtyLocalNotebooks() {
1188 NSqlQuery query(db);
1189 query.prepare("update datastore set data=0 where key=:dirty and data=1 and lid in (select lid from datastore where key=:local and data=1);");
1190 query.bindValue(":dirty", NOTEBOOK_ISDIRTY);
1191 query.bindValue(":local", NOTEBOOK_IS_LOCAL);
1192 query.exec();
1193 query.finish();
1194 db->unlock();
1195}

Callers 1

uploadNotebooksMethod · 0.80

Calls 4

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

Tested by

no test coverage detected