Struct sea_orm::schema::Schema [−][src]
pub struct Schema { /* fields omitted */ }
Expand description
This is a helper struct to convert EntityTrait
into different sea_query
statements.
Implementations
pub fn create_enum_from_entity<E>(&self, entity: E) -> Vec<TypeCreateStatement>ⓘ where
E: EntityTrait,
pub fn create_enum_from_entity<E>(&self, entity: E) -> Vec<TypeCreateStatement>ⓘ where
E: EntityTrait,
Creates Postgres enums from an Entity. See TypeCreateStatement for more details
pub fn create_table_from_entity<E>(&self, entity: E) -> TableCreateStatement where
E: EntityTrait,
pub fn create_table_from_entity<E>(&self, entity: E) -> TableCreateStatement where
E: EntityTrait,
Creates a table from an Entity. See TableCreateStatement for more details