Akonadi

dbtype.h
1/*
2 SPDX-FileCopyrightText: 2012 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QSqlDatabase>
10
11namespace Akonadi
12{
13namespace Server
14{
15/** Helper methods for checking the database system we are dealing with. */
16namespace DbType
17{
18/** Supported database types. */
19enum Type {
20 Unknown,
21 Sqlite,
22 MySQL,
23 PostgreSQL,
24};
25
26/** Returns the type of the given database object. */
27Type type(const QSqlDatabase &db);
28
29/** Returns the type for the given driver name. */
30Type typeForDriverName(const QString &driverName);
31
32} // namespace DbType
33} // namespace Server
34} // namespace Akonadi
Type
Supported database types.
Definition dbtype.h:19
Type type(const QSqlDatabase &db)
Returns the type of the given database object.
Definition dbtype.cpp:11
Type typeForDriverName(const QString &driverName)
Returns the type for the given driver name.
Definition dbtype.cpp:16
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:56:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.