25 QSharedPointer<iRecord>
getRecordByAlias(
const QString &alias,
bool ifNotExistsCreate)
override;
26 QSharedPointer<iRecord>
getRecordByHash(
const QByteArray &hash,
bool ifNotExistsCreate)
override;
27 bool saveRecord(
const QSharedPointer<iRecord> &record)
override;
The IDataBase class Main database.
bool removeRecordByKey(const QByteArray &hash) override
removeRecordByKey This method will remove record by hash key.
bool removeRecordByAlias(const QString &alias) override
removeRecordByAlias This method will remove record by alias.
bool saveRecord(const QSharedPointer< iRecord > &record) override
saveRecord This method save a record object into database.
QSharedPointer< iRecord > getRecordByAlias(const QString &alias, bool ifNotExistsCreate) override
Get a user by their ID.
QVariantMap defaultDbParams() const override
QSharedPointer< iRecord > getRecordByHash(const QByteArray &hash, bool ifNotExistsCreate) override
getRecordByHash Get record by hash.