SecretService 0.13.2d47dfe
SecretService is base back end library for your c++ Qt projects.
|
#include <secretdatabase.h>
Public Member Functions | |
SecretDataBase () | |
QVariantMap | defaultDbParams () const override |
QSharedPointer< iRecord > | getRecordByAlias (const QString &alias, bool ifNotExistsCreate) override |
Get a user by their ID. | |
QSharedPointer< iRecord > | getRecordByHash (const QByteArray &hash, bool ifNotExistsCreate) override |
getRecordByHash Get record by hash. | |
bool | saveRecord (const QSharedPointer< iRecord > &record) override |
saveRecord This method save a record object into database. | |
bool | removeRecordByAlias (const QString &alias) override |
removeRecordByAlias This method will remove record by alias. | |
bool | removeRecordByKey (const QByteArray &hash) override |
removeRecordByKey This method will remove record by hash key. | |
Public Member Functions inherited from DBSecret::IDataBase | |
IDataBase () | |
Definition at line 17 of file secretdatabase.h.
DBSecret::SecretDataBase::SecretDataBase | ( | ) |
|
override |
Definition at line 29 of file secretdatabase.cpp.
|
overridevirtual |
Get a user by their ID.
id | The ID of the user to retrieve. |
ifNotExistsCreate | - this option will create a new object if object with id is not existst into database. But object wil not save into database. |
Implements DBSecret::IDataBase.
Definition at line 38 of file secretdatabase.cpp.
|
overridevirtual |
getRecordByHash Get record by hash.
hash | The hash of the user to retrieve. |
ifNotExistsCreate | - this option will create a new object if object with id is not existst into database. But object wil not save into database. |
Implements DBSecret::IDataBase.
Definition at line 43 of file secretdatabase.cpp.
|
overridevirtual |
removeRecordByAlias This method will remove record by alias.
alias | alias of the record that will be removed. |
Implements DBSecret::IDataBase.
Definition at line 51 of file secretdatabase.cpp.
|
overridevirtual |
removeRecordByKey This method will remove record by hash key.
hash | is the key of the record that will be removed. |
Implements DBSecret::IDataBase.
Definition at line 55 of file secretdatabase.cpp.
|
overridevirtual |
saveRecord This method save a record object into database.
record | - this is object tah will be saved into database |
Implements DBSecret::IDataBase.
Definition at line 47 of file secretdatabase.cpp.