Data_deduplication_service
Service that will use hashes to deduplicate files
|
Table model for pqxx::result. More...
#include <myPqxxModel.h>
Public Member Functions | |
myPqxxModel (QObject *parent=nullptr) | |
int | rowCount (const QModelIndex &parent) const override |
int | columnCount (const QModelIndex &parent) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
QVariant | data (const QModelIndex &index, int role) const override |
void | Reset () |
![]() | |
bool | performConnection (myConnString &cstring) |
bool | checkConnection () |
virtual void | getData ()=0 |
bool | isEmpty () const |
template<typename ResType1 , typename... Args> | |
void | executeInTransaction (ResType1(*call)(db_services::trasnactionType &, Args...), Args &&... args) |
template<typename ResType1 , typename... Args> | |
void | executeInTransaction (const std::function< ResType1(trasnactionType &, Args...)> &call, Args &&... args) |
Additional Inherited Members | |
![]() | |
QVariant | convertFromPqxx (const QModelIndex &index, int role) const |
Returns properly casted data Uses postgres column OID to perform cast to suitable type that will be wrapped in QVariant. More... | |
template<typename ResType1 , typename ... Args> | |
void | executeInTransaction (ResType1(*call)(db_services::trasnactionType &, Args ...), Args &&... args) |
template<typename ResType1 , typename ... Args> | |
void | executeInTransaction (const std::function< ResType1(db_services::trasnactionType &, Args ...)> &call, Args &&... args) |
void | setColumnsTypes () |
void | reset () |
![]() | |
resType | res |
conPtr | connection |
QList< oid > | columnTypes |
QList< QString > | columnNames |
bool | good |
bool | isEmpty_ |
Table model for pqxx::result.
|
explicit |
|
inlineoverride |
|
override |
|
override |
Shows headers
section | |
orientation | |
role |
void models::myPqxxModel::Reset | ( | ) |
Resets result and updates model
|
inlineoverride |