Data_deduplication_service
Service that will use hashes to deduplicate files
models Namespace Reference

models namespace More...

Classes

class  myPxxxModelBase
 Basic class for database pqxx::result representation. More...
 
class  myPqxxModel
 Table model for pqxx::result. More...
 
class  deduplicationCharacteristicsModel
 Pqxx model that retrieves database deduplication characteristic. More...
 
class  mySortFilterProxyModel
 Sort filter proxy model used for searching entry names. More...
 
class  notNullFilterProxyModel
 Sort filter model that filters out all rows with NULL values. More...
 
class  deselectableTableView
 Tbale view that can be deselected. More...
 

Typedefs

using oid = uint32_t
 
using returnType = std::variant< std::type_identity< int64_t >, std::type_identity< double >, std::type_identity< std::string >, std::type_identity< pqxx::binarystring > >
 

Functions

template<typename ReturnType >
QVariant toQtVariant (const ReturnType &val)
 
template<>
QVariant toQtVariant (const pqxx::binarystring &val)
 
template<>
QVariant toQtVariant (const std::string_view &val)
 
template<>
QVariant toQtVariant (const std::string &val)
 
template<>
QVariant toQtVariant (const double &val)
 
QVariant toQtVariant (const int64_t &val)
 

Detailed Description

models namespace

Typedef Documentation

◆ oid

using models::oid = typedef uint32_t

Type for postgresql OID storage

◆ returnType

using models::returnType = typedef std::variant <std::type_identity<int64_t>, std::type_identity<double>, std::type_identity<std::string>, std::type_identity<pqxx::binarystring> >

Variant type for runtime type evaluation

Function Documentation

◆ toQtVariant() [1/6]

template<>
QVariant models::toQtVariant ( const double &  val)
inline

◆ toQtVariant() [2/6]

QVariant models::toQtVariant ( const int64_t &  val)
inline

◆ toQtVariant() [3/6]

template<>
QVariant models::toQtVariant ( const pqxx::binarystring &  val)
inline

◆ toQtVariant() [4/6]

template<typename ReturnType >
QVariant models::toQtVariant ( const ReturnType &  val)

To qtvariant converter

Template Parameters
ReturnType
Parameters
val
Returns
+ Here is the caller graph for this function:

◆ toQtVariant() [5/6]

template<>
QVariant models::toQtVariant ( const std::string &  val)
inline

◆ toQtVariant() [6/6]

template<>
QVariant models::toQtVariant ( const std::string_view &  val)
inline