Documetation for the schema module
This commit is contained in:
parent
91b9e542af
commit
69d5c701ee
@ -5,6 +5,7 @@ use crate::{
|
||||
use sea_query::{ColumnDef, ForeignKeyCreateStatement, Iden, Index, TableCreateStatement};
|
||||
|
||||
impl Schema {
|
||||
/// Creates a table from an Entity. See [TableCreateStatement] for more details
|
||||
pub fn create_table_from_entity<E>(entity: E) -> TableCreateStatement
|
||||
where
|
||||
E: EntityTrait,
|
||||
|
@ -1,4 +1,5 @@
|
||||
mod entity;
|
||||
|
||||
/// This structure defines a schema for a table
|
||||
#[derive(Debug)]
|
||||
pub struct Schema;
|
||||
|
Loading…
x
Reference in New Issue
Block a user