LeechCraft  0.6.70-9312-g4cc613a2df
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeechCraft::Util::oral Namespace Reference

Namespaces

 detail
 
 sph
 

Classes

class  QueryException
 
struct  Type2Name
 
struct  Type2Name< int >
 
struct  Type2Name< qulonglong >
 
struct  Type2Name< double >
 
struct  Type2Name< bool >
 
struct  Type2Name< QString >
 
struct  Type2Name< QByteArray >
 
struct  Type2Name< QDateTime >
 
struct  Type2Name< E, std::enable_if_t< std::is_enum< E >::value > >
 
struct  Type2Name< Unique< T > >
 
struct  Type2Name< PKey< T, Tags...> >
 
struct  Type2Name< PKey< int, Tags...> >
 
struct  Type2Name< References< Seq, Idx > >
 
struct  ToVariant
 
struct  ToVariant< QDateTime >
 
struct  ToVariant< E, std::enable_if_t< std::is_enum< E >::value > >
 
struct  ToVariant< Unique< T > >
 
struct  ToVariant< PKey< T, Tags...> >
 
struct  ToVariant< References< Seq, Idx > >
 
struct  FromVariant
 
struct  FromVariant< QDateTime >
 
struct  FromVariant< E, std::enable_if_t< std::is_enum< E >::value > >
 
struct  FromVariant< Unique< T > >
 
struct  FromVariant< PKey< T, Tags...> >
 
struct  FromVariant< References< Seq, Idx > >
 
struct  ObjectInfo
 
struct  PKey
 
struct  Unique
 
struct  References
 
struct  PrimaryKey
 
struct  UniqueSubset
 

Typedefs

template<typename T >
using ObjectInfo_ptr = std::shared_ptr< ObjectInfo< T >>
 
template<typename... Args>
using Constraints = Typelist< Args...>
 

Enumerations

enum  InsertAction {
  InsertAction::Default,
  InsertAction::Ignore,
  InsertAction::Replace
}
 

Functions

template<typename Record >
void Migrate (QSqlDatabase &db)
 
template<typename T >
ObjectInfo< T > Adapt (const QSqlDatabase &db)
 
template<typename T >
ObjectInfo_ptr< T > AdaptPtr (const QSqlDatabase &db)
 

Typedef Documentation

template<typename... Args>
using LeechCraft::Util::oral::Constraints = typedef Typelist<Args...>

Definition at line 172 of file oraltypes.h.

template<typename T >
using LeechCraft::Util::oral::ObjectInfo_ptr = typedef std::shared_ptr<ObjectInfo<T>>

Definition at line 1461 of file oral.h.

Enumeration Type Documentation

Enumerator
Default 
Ignore 
Replace 

Definition at line 342 of file oral.h.

Function Documentation

template<typename T >
ObjectInfo<T> LeechCraft::Util::oral::Adapt ( const QSqlDatabase &  db)

Definition at line 1428 of file oral.h.

References LeechCraft::Util::RunTextQuery().

+ Here is the call graph for this function:

template<typename T >
ObjectInfo_ptr<T> LeechCraft::Util::oral::AdaptPtr ( const QSqlDatabase &  db)

Definition at line 1464 of file oral.h.

template<typename Record >
void LeechCraft::Util::oral::Migrate ( QSqlDatabase &  db)

Definition at line 65 of file migrate.h.

References LeechCraft::Util::DBLock::Init(), LeechCraft::Util::oral::detail::MatchesSchema(), and LeechCraft::Util::RunTextQuery().

+ Here is the call graph for this function: