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

#include <UT_ORMSchemaEditor.h>

+ Inheritance diagram for UT_ORMSqliteSchemaEditor:

Public Member Functions

 UT_ORMSqliteSchemaEditor (UT_SqlOrm &orm, bool collect_sql)
 
void addConstraint (const UT_ORMModelState &state, UT_IORMConstraint *constraint) override
 
void addField (const UT_ORMModelState &model, const UT_ORMModelStateField &field) override
 
void alterDBTable (const UT_ORMModelState &old_model, const UT_ORMModelState &new_model) override
 
void removeField (const UT_ORMModelState &model, const UT_ORMModelStateField &field) override
 
void alterField (const UT_ORMModelState &model, const UT_ORMModelStateField &old_field, const UT_ORMModelStateField &new_field) override
 
- Public Member Functions inherited from UT_IORMSchemaEditor
virtual ~UT_IORMSchemaEditor ()
 
 UT_NON_COPYABLE (UT_IORMSchemaEditor)
 
virtual void deleteModel (const UT_ORMModelState &model, bool handle_autom2m=true)
 
virtual void createModel (const UT_ORMModelState &model)
 
virtual void renameField (const UT_ORMModelState &model, const UT_ORMModelStateField &from_field, const UT_ORMModelStateField &to_field)
 
UT_StringHolder uniqueSql (const UT_ORMModelState &model, const UT_StringArray &fields, const UT_StringHolder &name, const UT_StringHolder &condition)
 
UT_UniquePtr< UT_ORMDDLStatementcreateUniqueSql (const UT_ORMModelState &model, const UT_StringArray &fields, const UT_StringHolder &name, const UT_StringHolder &condition) const
 
UT_UniquePtr< UT_ORMDDLStatementdeleteUniqueSql (const UT_ORMModelState &model, const UT_StringHolder &name, const UT_StringHolder &condition) const
 
const UT_StringArraycollectedSql () const
 
UT_ErrorCode error () const
 
UT_SqlDatabaseconnection ()
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IORMSchemaEditor
 UT_IORMSchemaEditor (UT_SqlOrm &orm, bool collect_sql=false)
 
UT_StringHolder columnSql (const UT_ORMModelState &model, const UT_ORMModelStateField &field)
 
void execute (const UT_StringHolder &sql)
 
UT_StringHolder tableSql (const UT_ORMModelState &model)
 
UT_StringHolder typeString_ (UT_ORMColumnType col_type) const
 
- Protected Attributes inherited from UT_IORMSchemaEditor
UT_SqlOrmmyORM
 
UT_StringHolder mySqlDeleteTable
 
UT_Map< UT_ORMColumnType,
UT_StringHolder
myColumnTypeToDBType
 
UT_Array< UT_UniquePtr
< UT_IORMDDLReference > > 
myDeferredSql
 
UT_ErrorCode myErrorCode
 
UT_StringArray myCollectedSql
 
bool myCollectSql = false
 
UT_UniquePtr
< UT_AutoSqlTransaction
myTransaction
 

Detailed Description

Definition at line 103 of file UT_ORMSchemaEditor.h.

Constructor & Destructor Documentation

UT_ORMSqliteSchemaEditor::UT_ORMSqliteSchemaEditor ( UT_SqlOrm orm,
bool  collect_sql 
)

Member Function Documentation

void UT_ORMSqliteSchemaEditor::addConstraint ( const UT_ORMModelState state,
UT_IORMConstraint constraint 
)
overridevirtual

Reimplemented from UT_IORMSchemaEditor.

void UT_ORMSqliteSchemaEditor::addField ( const UT_ORMModelState model,
const UT_ORMModelStateField field 
)
overridevirtual

Reimplemented from UT_IORMSchemaEditor.

void UT_ORMSqliteSchemaEditor::alterDBTable ( const UT_ORMModelState old_model,
const UT_ORMModelState new_model 
)
overridevirtual

Reimplemented from UT_IORMSchemaEditor.

void UT_ORMSqliteSchemaEditor::alterField ( const UT_ORMModelState model,
const UT_ORMModelStateField old_field,
const UT_ORMModelStateField new_field 
)
overridevirtual

Reimplemented from UT_IORMSchemaEditor.

void UT_ORMSqliteSchemaEditor::removeField ( const UT_ORMModelState model,
const UT_ORMModelStateField field 
)
overridevirtual

Reimplemented from UT_IORMSchemaEditor.


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