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
Creates Postgres enums from an ActiveEnum. See TypeCreateStatement for more details
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schema
impl UnwindSafe for Schema
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more