MCPcopy Create free account
hub / github.com/codestation/qcma / clear

Method clear

common/sqlitedb.cpp:217–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void SQLiteDB::clear()
218{
219 db.close();
220 //QSqlDatabase::removeDatabase("QSQLITE");
221 QString db_path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
222 db_path = QSettings().value("databasePath", db_path).toString();
223 QFile(db_path + QDir::separator() + "qcma.sqlite").remove();
224 load();
225}
226
227bool SQLiteDB::initialize()
228{

Callers

nothing calls this directly

Calls 2

closeMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected