Akonadi
dbintrospector.cpp
68 const auto name = (DbType::type(m_database) == DbType::PostgreSQL) ? tableName.toLower() : tableName;
static DataStore * dataStoreForDatabase(const QSqlDatabase &db)
Returns DataStore associated with the given database connection.
Definition datastore.cpp:94
virtual bool hasIndex(const QString &tableName, const QString &indexName)
Returns true of the given table has an index with the given name.
Definition dbintrospector.cpp:52
virtual bool hasTable(const QString &tableName)
Returns true if table tableName exists.
Definition dbintrospector.cpp:47
virtual bool isTableEmpty(const QString &tableName)
Check whether table tableName is empty, ie.
Definition dbintrospector.cpp:83
virtual bool hasColumn(const QString &tableName, const QString &columnName)
Check whether table tableName has a column named columnName.
Definition dbintrospector.cpp:61
DbIntrospector(const QSqlDatabase &database)
Creates a new database introspector, call from subclass.
Definition dbintrospector.cpp:38
virtual QString hasIndexQuery(const QString &tableName, const QString &indexName)
Returns a query string to determine if tableName has an index indexName.
Definition dbintrospector.cpp:103
virtual QList< ForeignKey > foreignKeyConstraints(const QString &tableName)
Returns the foreign key constraints on table tableName.
Definition dbintrospector.cpp:97
static DbIntrospector::Ptr createInstance(const QSqlDatabase &database)
Returns an introspector instance for a given database.
Definition dbintrospector.cpp:22
Helper class to construct arbitrary SQL queries.
Definition querybuilder.h:33
void addColumn(const QString &col)
Adds the given column to a select query.
Definition querybuilder.cpp:624
void setLimit(int limit, int offset=-1)
Limits the amount of retrieved rows.
Definition querybuilder.cpp:802
Type type(const QSqlDatabase &db)
Returns the type of the given database object.
Definition dbtype.cpp:11
iterator insert(const Key &key, const T &value)
T value(const Key &key) const const
T & first()
bool isEmpty() const const
void push_back(parameter_type value)
void reserve(qsizetype size)
qsizetype size() const const
QString driverName() const const
QSqlRecord record(const QString &tablename) const const
QStringList tables(QSql::TableType type) const const
QString name() const const
int count() const const
QSqlField field(const QString &name) const const
QString toLower() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
CaseInsensitive
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.