13 #ifndef __UT_ORMOPERATION_H__
14 #define __UT_ORMOPERATION_H__
55 : myTableName(table_name)
67 myTableName = table_name;
72 myFields.emplace_back(std::move(field));
80 unsigned props = UT_ORMColumn::Properties::Empty)
84 exint i = myFields.emplace_back(std::move(field));
92 exint i = myFields.emplace_back(name, type,
props);
100 exint i = myFields.emplace_back(
101 name, type,
props | UT_ORMColumn::Properties::AutoIncrement);
115 : myTableName(table_name)
136 : myTableName(table_name), myField(std::move(field))
158 : myTableName(table_name), myFieldName(field_name)
181 : myTableName(table_name), myFromName(from_name), myToName(to_name)
197 #endif // __UT_ORMOPERATION_H__
UT_ORMRemoveFieldOperation(const UT_StringHolder &table_name, const UT_StringHolder &field_name)
UT_ORMCreateTableOperation & addField(UT_ORMColumn &&field)
virtual void upgrade(UT_SqlStatement &stmt, UT_ErrorCode &ec)=0
virtual void apply(UT_ORMMigrationChangeNotifier ¬ifier, UT_ErrorCode &ec)=0
virtual void sql(const UT_SqlStatement &stmt, UT_WorkBuffer &wbuf)=0
UT_ORMColumn & addForeignField(const UT_StringHolder &name, UT_ORMColumn::Type type, const UT_StringHolder &foreign_table, const UT_StringHolder &foreign_col, unsigned props=UT_ORMColumn::Properties::Empty)
UT_ORMColumn & addField(const UT_StringHolder &name, UT_ORMColumn::Type type, UT_ORMColumn::Properties props=UT_ORMColumn::Properties::Empty)
UT_ORMCreateTableOperation & setTableName(const UT_StringHolder &table_name)
UT_ORMColumn & addAutoField(const UT_StringHolder &name, UT_ORMColumn::Type type, UT_ORMColumn::Properties props=UT_ORMColumn::Properties::Empty)
GLuint const GLchar * name
std::error_code UT_ErrorCode
UT_ORMAddFieldOperation(const UT_StringHolder &table_name, UT_ORMColumn &&field)
virtual const UT_StringHolder & name() const =0
UT_ORMDropTableOperation(const UT_StringHolder &table_name)
LeafData & operator=(const LeafData &)=delete
UT_ORMCreateTableOperation(const UT_StringHolder &table_name)
UT_ORMRenameFieldOperation(const UT_StringHolder &table_name, const UT_StringHolder &from_name, const UT_StringHolder &to_name)
Class to store JSON objects as C++ objects.
void setAsForeignKey(const UT_StringHolder &table_name, const UT_StringHolder &col)
GLenum GLuint GLsizei const GLenum * props