Akonadi::Server::QueryCache
Akonadi::Server::QueryCache Namespace Reference
Functions | |
void | clear () |
void | insert (const QSqlDatabase &db, const QString &queryStatement, const QSqlQuery &query) |
std::optional< QSqlQuery > | query (const QString &queryStatement) |
Detailed Description
A per-thread cache (should be per session, but that'S the same for us) prepared query cache.
Function Documentation
◆ clear()
void Akonadi::Server::QueryCache::clear | ( | ) |
Clears all queries from current thread.
Definition at line 108 of file querycache.cpp.
◆ insert()
void Akonadi::Server::QueryCache::insert | ( | const QSqlDatabase & | db, |
const QString & | queryStatement, | ||
const QSqlQuery & | query ) |
Insert query
into the cache for queryStatement
.
Definition at line 101 of file querycache.cpp.
◆ query()
Returns the cached (and prepared) query for queryStatement
.
Definition at line 96 of file querycache.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.