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