Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0ac6c595 authored by Stefan Brüns's avatar Stefan Brüns

[Bookmarks Runner] Expose list of tables from FetchSqlite

Summary: This is a preparatory patch required for further rework

Test Plan: make

Reviewers: #frameworks, davidedmundson

Reviewed By: davidedmundson

Subscribers: davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D15488
parent bedf66c2
......@@ -100,3 +100,10 @@ QList<QVariantMap> FetchSqlite::query(const QString &sql, QMap<QString, QVariant
}
return result;
}
QStringList FetchSqlite::tables(QSql::TableType type)
{
QMutexLocker lock(&m_mutex);
return m_db.tables(type);
}
......@@ -48,6 +48,7 @@ public:
QList<QVariantMap> query(const QString &sql, QMap<QString,QVariant> bindObjects);
QList<QVariantMap> query(BuildQuery *buildQuery, QMap<QString,QVariant> bindObjects);
QList<QVariantMap> query(const QString &sql);
QStringList tables(QSql::TableType type = QSql::Tables);
private:
QString const m_databaseFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment