pub struct Schema {
pub tables: Vec<Table>,
}Expand description
Represents a SQL database schema.
Fields§
§tables: Vec<Table>Implementations§
source§impl Schema
impl Schema
sourcepub fn migrate_to(
self,
desired: Schema,
options: &MigrationOptions
) -> Result<Migration>
pub fn migrate_to( self, desired: Schema, options: &MigrationOptions ) -> Result<Migration>
Calculate the migration necessary to move from self: Schema to the argument desired: Schema.
sourcepub fn name_schema(&mut self, schema: &str)
pub fn name_schema(&mut self, schema: &str)
Propagate the schema name to all tables.