Akonadi

dbintrospector_impl.h
1 /*
2  SPDX-FileCopyrightText: 2006 Tobias Koenig <[email protected]>
3  SPDX-FileCopyrightText: 2012 Volker Krause <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "dbintrospector.h"
11 
12 namespace Akonadi
13 {
14 namespace Server
15 {
16 class DbIntrospectorMySql : public DbIntrospector
17 {
18 public:
19  explicit DbIntrospectorMySql(const QSqlDatabase &database);
20  QVector<ForeignKey> foreignKeyConstraints(const QString &tableName) override;
21  QString hasIndexQuery(const QString &tableName, const QString &indexName) override;
22 };
23 
24 class DbIntrospectorSqlite : public DbIntrospector
25 {
26 public:
27  explicit DbIntrospectorSqlite(const QSqlDatabase &database);
28  QVector<ForeignKey> foreignKeyConstraints(const QString &tableName) override;
29  QString hasIndexQuery(const QString &tableName, const QString &indexName) override;
30 };
31 
32 class DbIntrospectorPostgreSql : public DbIntrospector
33 {
34 public:
35  explicit DbIntrospectorPostgreSql(const QSqlDatabase &database);
36  QVector<ForeignKey> foreignKeyConstraints(const QString &tableName) override;
37  QString hasIndexQuery(const QString &tableName, const QString &indexName) override;
38 };
39 
40 } // namespace Server
41 } // namespace Akonadi
42 
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.