13 #ifndef __UT_ORMMIGRATIONBUILDER_H__
14 #define __UT_ORMMIGRATIONBUILDER_H__
104 : myModelName(model_name), myName(name)
154 return myRegisteredMetas;
158 myRegisteredMetas.emplace_back(meta);
189 #endif // __UT_ORMMIGRATIONBUILDER_H__
const UT_StringHolder myName
const UT_Array< const UT_ORMModelMeta * > & registeredModelMetas() const
void removeField(const UT_StringRef &model_name, const UT_StringRef &name, UT_ErrorCode &ec)
void dropModel(const UT_StringRef &table_name, UT_ErrorCode &ec)
std::error_category UT_ErrorCategory
const UT_Array< UT_ORMMigration > & migrations() const
void registerModelMeta(const UT_ORMModelMeta *meta)
UT_Map< UT_StringHolder, Model > & models()
void addField(const UT_StringRef &model_name, const UT_ORMColumn &col, UT_ErrorCode &ec)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
void renameField(const UT_StringRef &model_name, const UT_StringRef &cur_name, const UT_StringHolder &new_name, UT_ErrorCode &ec)
GLuint const GLchar * name
UT_ErrorCode make_error_code(UT::OrmMigError e)
const UT_StringHolder myModelName
UT_ORMMigration(const UT_StringHolder &model_name, const UT_StringHolder &name)
std::error_code UT_ErrorCode
UT_API const UT_ErrorCategory & GetOrmMigErrorCategory()
UT_ORMMigrationChangeNotifier(UT_ORMMigrationBuilder &builder)
UT_Array< UT_ORMColumn > myFields
UT_Array< UT_UniquePtr< UT_IORMOperation > > myOperations
const UT_Map< UT_StringHolder, Model > & models() const
UT_NON_COPYABLE(UT_ORMMigrationChangeNotifier)
~UT_ORMMigrationChangeNotifier()=default
void createModel(const UT_StringHolder &table_name, const UT_Array< UT_ORMColumn > &columns, UT_ErrorCode &ec)