sea_schema/postgres/writer/
mod.rs

1mod column;
2mod constraints;
3mod enumeration;
4mod schema;
5mod table;
6mod types;
7
8use super::def::Schema;
9use sea_query::TableCreateStatement;
10
11impl Schema {
12    pub fn write(&self) -> Vec<TableCreateStatement> {
13        self.tables.iter().map(|table| table.write()).collect()
14    }
15}