Akonadi::Server::DbType

Akonadi::Server::DbType Namespace Reference

Enumerations

enum  Type { Unknown, Sqlite, MySQL, PostgreSQL }
 

Functions

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

◆ Type

Supported database types.

Definition at line 19 of file dbtype.h.

Function Documentation

◆ isSystemSQLite()

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.

◆ type()

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.

◆ typeForDriverName()

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-2023 The KDE developers.
Generated on Mon Mar 20 2023 03:53:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.