HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SQLORM.h File Reference
#include "UT_API.h"
#include "UT_Array.h"
#include "UT_Debug.h"
#include "UT_Function.h"
#include "UT_Lock.h"
#include "UT_NonCopyable.h"
#include "UT_ORMField.h"
#include "UT_Optional.h"
#include "UT_SGuid.h"
#include "UT_SQL.h"
#include "UT_SharedPtr.h"
#include "UT_StringHolder.h"
#include "UT_ThreadSpecificValue.h"
#include "UT_UniquePtr.h"
#include "UT_WorkBuffer.h"
#include "UT_ORMMigrationResult.h"
#include <variant>
#include <utility>
+ Include dependency graph for UT_SQLORM.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< UT::SqlOrmError >
 
class  UT_ORMModel< T >
 
class  UT_ORMModelMeta
 
class  UT_SqlOrm
 

Namespaces

 UT
 
 std
 

Macros

#define UT_DECLARE_MODEL()
 
#define UT_DEFINE_MODEL(_model_)
 

Enumerations

enum  UT::SqlOrmError {
  UT::SqlOrmError::UT_ORM_OK, UT::SqlOrmError::UT_ORM_NOT_SUPPORTED, UT::SqlOrmError::UT_ORM_OPERATION_FAILED, UT::SqlOrmError::UT_ORM_INCORRECT_TYPE,
  UT::SqlOrmError::UT_ORM_BAD_MIGRATION, UT::SqlOrmError::UT_ORM_MIG_MISSING_COL, UT::SqlOrmError::UT_ORM_MIG_INV_COL_TYPE, UT::SqlOrmError::UT_ORM_MIG_INV_COL_PROP,
  UT::SqlOrmError::UT_ORM_MIG_MISSING
}
 Error codes to describe ORM errors. More...
 

Functions

UT_API const UT_ErrorCategoryUT::GetOrmErrorCategory ()
 
UT_ErrorCode UT::make_error_code (UT::SqlOrmError e)
 

Macro Definition Documentation

#define UT_DECLARE_MODEL ( )
Value:
public: \
class Meta; \
friend class UT_ORMModelMeta; \
static const Meta& metaInfo();
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
Definition: thread.h:623

Definition at line 689 of file UT_SQLORM.h.

#define UT_DEFINE_MODEL (   _model_)
Value:
const _model_::Meta& _model_::metaInfo() \
{ \
static Meta _instance; \
return _instance; \
}

Definition at line 695 of file UT_SQLORM.h.