LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::oral::detail::AdaptInsert< Seq > Struct Template Reference

#include "oral.h"

+ Inheritance diagram for LeechCraft::Util::oral::detail::AdaptInsert< Seq >:
+ Collaboration diagram for LeechCraft::Util::oral::detail::AdaptInsert< Seq >:

Public Member Functions

 AdaptInsert (const QSqlDatabase &db, CachedFieldsData data)
 
auto operator() (Seq &t, InsertAction action=InsertAction::Default) const
 
auto operator() (const Seq &t, InsertAction action=InsertAction::Default) const
 

Public Attributes

const QSqlDatabase DB_
 
const CachedFieldsData Data_
 
const QString InsertSuffix_
 
std::array< QSqlQuery_ptr, InsertActionCountQueries_
 

Static Public Attributes

static constexpr bool HasAutogen_ = HasAutogenPKey<Seq> ()
 

Detailed Description

template<typename Seq>
struct LeechCraft::Util::oral::detail::AdaptInsert< Seq >

Definition at line 399 of file oral.h.

Constructor & Destructor Documentation

◆ AdaptInsert()

template<typename Seq>
LeechCraft::Util::oral::detail::AdaptInsert< Seq >::AdaptInsert ( const QSqlDatabase &  db,
CachedFieldsData  data 
)
inline

Definition at line 409 of file oral.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename Seq>
auto LeechCraft::Util::oral::detail::AdaptInsert< Seq >::operator() ( Seq &  t,
InsertAction  action = InsertAction::Default 
) const
inline

Definition at line 430 of file oral.h.

◆ operator()() [2/2]

template<typename Seq>
auto LeechCraft::Util::oral::detail::AdaptInsert< Seq >::operator() ( const Seq &  t,
InsertAction  action = InsertAction::Default 
) const
inline

Definition at line 435 of file oral.h.

Member Data Documentation

◆ Data_

template<typename Seq>
const CachedFieldsData LeechCraft::Util::oral::detail::AdaptInsert< Seq >::Data_

Definition at line 402 of file oral.h.

◆ DB_

template<typename Seq>
const QSqlDatabase LeechCraft::Util::oral::detail::AdaptInsert< Seq >::DB_

Definition at line 401 of file oral.h.

◆ HasAutogen_

template<typename Seq>
constexpr bool LeechCraft::Util::oral::detail::AdaptInsert< Seq >::HasAutogen_ = HasAutogenPKey<Seq> ()
static

Definition at line 405 of file oral.h.

◆ InsertSuffix_

template<typename Seq>
const QString LeechCraft::Util::oral::detail::AdaptInsert< Seq >::InsertSuffix_

Definition at line 403 of file oral.h.

◆ Queries_

template<typename Seq>
std::array<QSqlQuery_ptr, InsertActionCount> LeechCraft::Util::oral::detail::AdaptInsert< Seq >::Queries_
mutable

Definition at line 407 of file oral.h.


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