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

#include <UT_ORMMigrationBuilder.h>

Public Member Functions

 UT_ORMMigration (const UT_StringHolder &model_name, const UT_StringHolder &name)
 
 ~UT_ORMMigration ()=default
 
 UT_NON_COPYABLE (UT_ORMMigration)
 
UT_ORMCreateTableOperationcreateModel (const UT_StringHolder &table_name)
 
UT_ORMDropTableOperationdropModel (const UT_StringHolder &table_name)
 
UT_ORMAddFieldOperationaddField (const UT_StringHolder &model_name, UT_ORMColumn &&col)
 
UT_ORMRenameFieldOperationrenameField (const UT_StringHolder &model_name, const UT_StringHolder &cur_name, const UT_StringHolder &new_name)
 
UT_ORMRemoveFieldOperationremoveField (const UT_StringHolder &model_name, const UT_StringHolder &name)
 

Public Attributes

const UT_StringHolder myModelName
 
const UT_StringHolder myName
 
UT_Array< UT_UniquePtr
< UT_IORMOperation > > 
myOperations
 

Detailed Description

Definition at line 98 of file UT_ORMMigrationBuilder.h.

Constructor & Destructor Documentation

UT_ORMMigration::UT_ORMMigration ( const UT_StringHolder model_name,
const UT_StringHolder name 
)
inlineexplicit

Definition at line 101 of file UT_ORMMigrationBuilder.h.

UT_ORMMigration::~UT_ORMMigration ( )
default

Member Function Documentation

UT_ORMAddFieldOperation& UT_ORMMigration::addField ( const UT_StringHolder model_name,
UT_ORMColumn &&  col 
)
UT_ORMCreateTableOperation& UT_ORMMigration::createModel ( const UT_StringHolder table_name)
UT_ORMDropTableOperation& UT_ORMMigration::dropModel ( const UT_StringHolder table_name)
UT_ORMRemoveFieldOperation& UT_ORMMigration::removeField ( const UT_StringHolder model_name,
const UT_StringHolder name 
)
UT_ORMRenameFieldOperation& UT_ORMMigration::renameField ( const UT_StringHolder model_name,
const UT_StringHolder cur_name,
const UT_StringHolder new_name 
)
UT_ORMMigration::UT_NON_COPYABLE ( UT_ORMMigration  )

Member Data Documentation

const UT_StringHolder UT_ORMMigration::myModelName

Definition at line 123 of file UT_ORMMigrationBuilder.h.

const UT_StringHolder UT_ORMMigration::myName

Definition at line 124 of file UT_ORMMigrationBuilder.h.

UT_Array<UT_UniquePtr<UT_IORMOperation> > UT_ORMMigration::myOperations

Definition at line 125 of file UT_ORMMigrationBuilder.h.


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