Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
sqldb.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#include "sqldb.h"
9namespace QH {
10
14
15void SqlDB::deleteFromCache(const QSharedPointer<PKG::DBObject> &delObj) {
16 Q_UNUSED(delObj);
17}
18
19bool SqlDB::insertToCache(const QSharedPointer<PKG::DBObject> &obj) {
20 Q_UNUSED(obj);
21 return false;
22}
23
24bool SqlDB::updateCache(const QSharedPointer<PKG::DBObject> &obj) {
25 Q_UNUSED(obj);
26 return false;
27}
28
29QList<QSharedPointer<PKG::DBObject>>
31 Q_UNUSED(obj);
32 return {};
33}
34
35void SqlDB::pushToQueue(const QSharedPointer<PKG::DBObject> &obj,
36 CacheAction type) {
37 Q_UNUSED(obj);
38 Q_UNUSED(type);
39}
40
41void SqlDB::globalUpdateDataBasePrivate(qint64 currentTime) {
42 Q_UNUSED(currentTime);
43}
44
46 Q_UNUSED(mode);
47}
48}
ISqlDB(qint64 updateInterval=DEFAULT_UPDATE_INTERVAL, SqlDBCasheWriteMode mode=SqlDBCasheWriteMode::Default)
ISqlDB This is default constructor of dbcache.
Definition isqldb.cpp:139
The DBObject class- main class for work with data base.
Definition dbobject.h:94
bool insertToCache(const QSharedPointer< PKG::DBObject > &obj) override final
Definition sqldb.cpp:19
void globalUpdateDataBasePrivate(qint64 currentTime) override final
globalUpdateDataBasePrivate This method update(write) all data from cache into database....
Definition sqldb.cpp:41
void globalUpdateDataBase(SqlDBCasheWriteMode mode) override final
globalUpdateDataBase This is base method for syncing data from the cache with database.
Definition sqldb.cpp:45
void pushToQueue(const QSharedPointer< PKG::DBObject > &obj, CacheAction type) override final
Definition sqldb.cpp:35
QList< QSharedPointer< PKG::DBObject > > getFromCache(const PKG::DBObject *obj) override final
getFromCache This method return strong pointer to the database object from cache (pool).
Definition sqldb.cpp:30
void deleteFromCache(const QSharedPointer< PKG::DBObject > &delObj) override final
Definition sqldb.cpp:15
bool updateCache(const QSharedPointer< PKG::DBObject > &obj) override final
Definition sqldb.cpp:24
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13
SqlDBCasheWriteMode
The SqlDBCasheWriteMode enum contains list of available modes of write data into database.
Definition isqldb.h:29
@ Force
This mode writes all changes to the database as soon as they come to the cache.
Definition isqldb.h:35
CacheAction
The CacheAction enum contains types of database cache actions. The any database caches save all chang...
Definition isqldb.h:44