HDK
|
#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 |
Definition at line 255 of file UT_SQLORM.h.
|
inlineexplicit |
Definition at line 258 of file UT_SQLORM.h.
|
default |
|
virtualdefault |
void UT_SqlOrm::close | ( | UT_ErrorCode * | ec = nullptr | ) |
|
inline |
Definition at line 266 of file UT_SQLORM.h.
|
staticprotected |
|
inline |
Definition at line 271 of file UT_SQLORM.h.
|
protected |
|
protected |
void UT_SqlOrm::migrate | ( | UT_ORMModelMeta * | meta, |
UT_ORMMigrationResult & | result | ||
) |
void UT_SqlOrm::migrate | ( | UT_ORMMigrationResult & | result | ) |
|
inline |
Definition at line 289 of file UT_SQLORM.h.
|
inline |
Definition at line 277 of file UT_SQLORM.h.
UT_SqlOrm::UT_NON_COPYABLE | ( | UT_SqlOrm | ) |
|
friend |
Definition at line 302 of file UT_SQLORM.h.
|
protected |
Definition at line 314 of file UT_SQLORM.h.
|
protected |
Definition at line 313 of file UT_SQLORM.h.
|
protected |
Definition at line 316 of file UT_SQLORM.h.
|
protected |
Definition at line 318 of file UT_SQLORM.h.