HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SqlOrm Class Reference

#include <UT_SQLORM.h>

Public Member Functions

 UT_SqlOrm (const UT_StringHolder &db_path)
 
 UT_SqlOrm ()=default
 
virtual ~UT_SqlOrm ()=default
 
 UT_NON_COPYABLE (UT_SqlOrm)
 
void configure (const UT_StringHolder &db_path)
 
UT_SqlStatement cursor () const
 
UT_SqlTransaction transaction (UT_ErrorCode *ec=nullptr)
 
void migrate (UT_ORMModelMeta *meta, UT_ORMMigrationResult &result)
 
void migrate (UT_ORMMigrationResult &result)
 
void close (UT_ErrorCode *ec=nullptr)
 
template<typename T >
void registerModelMeta ()
 

Protected Member Functions

void doMigrate_ (UT_ORMMigrationBuilder &builder, UT_ORMMigrationResult &result)
 
void ensureConnection_ (UT_ErrorCode *ec=nullptr)
 

Static Protected Member Functions

static UT_UniquePtr
< UT_IORMOperation
createOperation (const UT_StringRef &type)
 

Protected Attributes

UT_StringHolder myDBPath
 
UT_ThreadSpecificValue
< UT_SqlDatabase
myDBLocal
 
SYS_AtomicInt32 myHasConfiguredInternals
 
UT_Array< const UT_ORMModelMeta * > myRegisteredMetas
 

Friends

class UT_SqlOrmTable
 

Detailed Description

Definition at line 255 of file UT_SQLORM.h.

Constructor & Destructor Documentation

UT_SqlOrm::UT_SqlOrm ( const UT_StringHolder db_path)
inlineexplicit

Definition at line 258 of file UT_SQLORM.h.

UT_SqlOrm::UT_SqlOrm ( )
default
virtual UT_SqlOrm::~UT_SqlOrm ( )
virtualdefault

Member Function Documentation

void UT_SqlOrm::close ( UT_ErrorCode ec = nullptr)
void UT_SqlOrm::configure ( const UT_StringHolder db_path)
inline

Definition at line 266 of file UT_SQLORM.h.

static UT_UniquePtr<UT_IORMOperation> UT_SqlOrm::createOperation ( const UT_StringRef type)
staticprotected
UT_SqlStatement UT_SqlOrm::cursor ( ) const
inline

Definition at line 271 of file UT_SQLORM.h.

void UT_SqlOrm::doMigrate_ ( UT_ORMMigrationBuilder builder,
UT_ORMMigrationResult result 
)
protected
void UT_SqlOrm::ensureConnection_ ( UT_ErrorCode ec = nullptr)
protected
void UT_SqlOrm::migrate ( UT_ORMModelMeta meta,
UT_ORMMigrationResult result 
)
void UT_SqlOrm::migrate ( UT_ORMMigrationResult result)
template<typename T >
void UT_SqlOrm::registerModelMeta ( )
inline

Definition at line 289 of file UT_SQLORM.h.

UT_SqlTransaction UT_SqlOrm::transaction ( UT_ErrorCode ec = nullptr)
inline

Definition at line 277 of file UT_SQLORM.h.

UT_SqlOrm::UT_NON_COPYABLE ( UT_SqlOrm  )

Friends And Related Function Documentation

friend class UT_SqlOrmTable
friend

Definition at line 302 of file UT_SQLORM.h.

Member Data Documentation

UT_ThreadSpecificValue<UT_SqlDatabase> UT_SqlOrm::myDBLocal
protected

Definition at line 314 of file UT_SQLORM.h.

UT_StringHolder UT_SqlOrm::myDBPath
protected

Definition at line 313 of file UT_SQLORM.h.

SYS_AtomicInt32 UT_SqlOrm::myHasConfiguredInternals
protected

Definition at line 316 of file UT_SQLORM.h.

UT_Array<const UT_ORMModelMeta*> UT_SqlOrm::myRegisteredMetas
protected

Definition at line 318 of file UT_SQLORM.h.


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