Akonadi::Server::DbType Namespace Reference


enum  Type { Unknown, Sqlite, MySQL, PostgreSQL }


bool isSystemSQLite (const QSqlDatabase &db)
Type type (const QSqlDatabase &db)
Type typeForDriverName (const QString &driverName)

Detailed Description

Helper methods for checking the database system we are dealing with.

Enumeration Type Documentation

Supported database types.

Definition at line 22 of file dbtype.h.

Function Documentation

bool Akonadi::Server::DbType::isSystemSQLite ( const QSqlDatabase db)

Returns true when using QSQLITE driver shipped with Qt, FALSE otherwise.

Definition at line 30 of file dbtype.cpp.

DbType::Type Akonadi::Server::DbType::type ( const QSqlDatabase db)

Returns the type of the given database object.

Definition at line 11 of file dbtype.cpp.

DbType::Type Akonadi::Server::DbType::typeForDriverName ( const QString driverName)

Returns the type for the given driver name.

Definition at line 16 of file dbtype.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:23:15 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.