Documetation for the schema module

This commit is contained in:
Charles Chege 2021-10-29 10:37:54 +03:00
parent 91b9e542af
commit 69d5c701ee
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -1,4 +1,5 @@
mod entity;
/// This structure defines a schema for a table
#[derive(Debug)]
pub struct Schema;