LeechCraft  0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
LC::Util::oral::detail::SelectWrapperCommon Class Reference

#include "oral.h"

+ Inheritance diagram for LC::Util::oral::detail::SelectWrapperCommon:

Protected Member Functions

 SelectWrapperCommon (const QSqlDatabase &db, const QString &limitNone)
 
auto RunQuery (const QString &fields, const QString &from, QString where, std::function< void(QSqlQuery &)> &&binder, const QString &orderStr, const QString &groupStr, const QString &limitOffsetStr) const
 
QString HandleLimitOffset (LimitNone, OffsetNone) const noexcept
 
QString HandleLimitOffset (Limit limit, OffsetNone) const noexcept
 
template<typename L >
QString HandleLimitOffset (L limit, Offset offset) const noexcept
 

Protected Attributes

const QSqlDatabase DB_
 
const QString LimitNone_
 

Detailed Description

Definition at line 1146 of file oral.h.

Constructor & Destructor Documentation

◆ SelectWrapperCommon()

LC::Util::oral::detail::SelectWrapperCommon::SelectWrapperCommon ( const QSqlDatabase &  db,
const QString &  limitNone 
)
inlineprotected

Definition at line 1152 of file oral.h.

Member Function Documentation

◆ HandleLimitOffset() [1/3]

QString LC::Util::oral::detail::SelectWrapperCommon::HandleLimitOffset ( LimitNone  ,
OffsetNone   
) const
inlineprotectednoexcept

Definition at line 1188 of file oral.h.

◆ HandleLimitOffset() [2/3]

QString LC::Util::oral::detail::SelectWrapperCommon::HandleLimitOffset ( Limit  limit,
OffsetNone   
) const
inlineprotectednoexcept

Definition at line 1193 of file oral.h.

◆ HandleLimitOffset() [3/3]

template<typename L >
QString LC::Util::oral::detail::SelectWrapperCommon::HandleLimitOffset ( limit,
Offset  offset 
) const
inlineprotectednoexcept

Definition at line 1199 of file oral.h.

References LimitNone_.

◆ RunQuery()

auto LC::Util::oral::detail::SelectWrapperCommon::RunQuery ( const QString &  fields,
const QString &  from,
QString  where,
std::function< void(QSqlQuery &)> &&  binder,
const QString &  orderStr,
const QString &  groupStr,
const QString &  limitOffsetStr 
) const
inlineprotected

Definition at line 1158 of file oral.h.

References DB_, LC::Util::DBLock::DumpError(), and LC::Util::oral::sph::fields.

+ Here is the call graph for this function:

Member Data Documentation

◆ DB_

const QSqlDatabase LC::Util::oral::detail::SelectWrapperCommon::DB_
protected

Definition at line 1149 of file oral.h.

Referenced by RunQuery().

◆ LimitNone_

const QString LC::Util::oral::detail::SelectWrapperCommon::LimitNone_
protected

Definition at line 1150 of file oral.h.

Referenced by HandleLimitOffset().


The documentation for this class was generated from the following file: