Akonadi
dbintrospector.h
86 virtual QString getAutoIncrementValueQuery(const QString &tableName, const QString &columnName) = 0;
89 * Returns query to update the next autoincrement value for @p tableName.@p columnName to value @p value.
91 virtual QString updateAutoIncrementValueQuery(const QString &tableName, const QString &columnName, qint64 value) = 0;
A structure describing an existing foreign key.
Definition dbintrospector.h:31
Methods for introspecting the current state of a database schema.
Definition dbintrospector.h:25
virtual QString getAutoIncrementValueQuery(const QString &tableName, const QString &columnName)=0
Returns query to retrieve the next autoincrement value for tableName.
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 QString updateAutoIncrementValueQuery(const QString &tableName, const QString &columnName, qint64 value)=0
Returns query to update the next autoincrement value for tableName.
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 integration between Akonadi and Qt.
Server
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.