LeechCraft  0.6.70-11552-gf61ee51c3d
Modular cross-platform feature rich live environment.
LeechCraft::Util::oral Namespace Reference

Namespaces

 detail
 
 sph
 

Classes

struct  FromVariant
 
struct  InsertAction
 
struct  IsIndirect
 
struct  IsIndirect< NotNull< T > >
 
struct  IsIndirect< PKey< T, Args... > >
 
struct  IsIndirect< References< Ptr > >
 
struct  IsIndirect< Unique< T > >
 
struct  NotNull
 
struct  ObjectInfo
 
struct  PKey
 
struct  PrimaryKey
 
class  QueryException
 
struct  References
 
struct  ToVariant
 
struct  Type2Name
 
struct  Type2Name< ImplFactory, NotNull< T > >
 
struct  Type2Name< ImplFactory, PKey< int, Tags... > >
 
struct  Type2Name< ImplFactory, PKey< T, Tags... > >
 
struct  Type2Name< ImplFactory, References< Ptr > >
 
struct  Type2Name< ImplFactory, Unique< T > >
 
struct  Unique
 
struct  UniqueSubset
 

Typedefs

using QSqlQuery_ptr = std::shared_ptr< QSqlQuery >
 
template<typename T >
using ObjectInfo_ptr = std::shared_ptr< ObjectInfo< T > >
 
template<typename T , typename... Args>
using PKeyValue_t = typename PKey< T, Args... >::value_type
 
template<typename T >
using UniqueValue_t = typename Unique< T >::value_type
 
template<typename T >
using NotNullValue_t = typename NotNull< T >::value_type
 
template<auto Ptr>
using ReferencesValue_t = typename References< Ptr >::value_type
 
template<typename... Args>
using Constraints = Typelist< Args... >
 
using PostgreSQLImplFactory = detail::PostgreSQL::ImplFactory
 
using SQLiteImplFactory = detail::SQLite::ImplFactory
 

Functions

template<typename Record , typename ImplFactory = SQLiteImplFactory>
void Migrate (QSqlDatabase &db)
 
template<typename T , typename ImplFactory = detail::SQLite::ImplFactory>
ObjectInfo< T > Adapt (const QSqlDatabase &db)
 
template<typename T , typename ImplFactory = SQLiteImplFactory>
ObjectInfo_ptr< T > AdaptPtr (const QSqlDatabase &db)
 
template<typename T , typename... Args>
char * toString (const PKey< T, Args... > &pkey)
 

Typedef Documentation

◆ Constraints

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

Definition at line 220 of file oraltypes.h.

◆ NotNullValue_t

template<typename T >
using LeechCraft::Util::oral::NotNullValue_t = typedef typename NotNull<T>::value_type

Definition at line 150 of file oraltypes.h.

◆ ObjectInfo_ptr

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

Definition at line 1249 of file oral.h.

◆ PKeyValue_t

template<typename T , typename... Args>
using LeechCraft::Util::oral::PKeyValue_t = typedef typename PKey<T, Args...>::value_type

Definition at line 82 of file oraltypes.h.

◆ PostgreSQLImplFactory

◆ QSqlQuery_ptr

using LeechCraft::Util::oral::QSqlQuery_ptr = typedef std::shared_ptr<QSqlQuery>

Definition at line 74 of file oral.h.

◆ ReferencesValue_t

template<auto Ptr>
using LeechCraft::Util::oral::ReferencesValue_t = typedef typename References<Ptr>::value_type

Definition at line 211 of file oraltypes.h.

◆ SQLiteImplFactory

◆ UniqueValue_t

template<typename T >
using LeechCraft::Util::oral::UniqueValue_t = typedef typename Unique<T>::value_type

Definition at line 116 of file oraltypes.h.

Function Documentation

◆ Adapt()

template<typename T , typename ImplFactory = detail::SQLite::ImplFactory>
ObjectInfo<T> LeechCraft::Util::oral::Adapt ( const QSqlDatabase &  db)

Definition at line 1228 of file oral.h.

References LeechCraft::Util::RunTextQuery().

+ Here is the call graph for this function:

◆ AdaptPtr()

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

Definition at line 1252 of file oral.h.

◆ Migrate()

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

◆ toString()

template<typename T , typename... Args>
char* LeechCraft::Util::oral::toString ( const PKey< T, Args... > &  pkey)

Definition at line 71 of file common.h.

References toString(), and LeechCraft::Util::oral::PKey< T, Tags >::Val_.

+ Here is the call graph for this function: