fn write_schema_schema(&self) -> Result<(), S<Error>> {
        let mut schema_names = HashMap::with_capacity(1);
        for table in &self.tables {
            if let (Some(unique_name), Some(name)) = (table.name.unique_schema_name(), table.name.schema_name()) {
                schema_names.insert(unique_name, name);
            }
        }
        for (unique_name, name) in schema_names {
            let path = self.out_dir.join(format!("{}-schema-create.sql", unique_name));
            let mut file = BufWriter::new(File::create(&path).with_path("create schema schema file", &path)?);
            writeln!(file, "CREATE SCHEMA {};", name).with_path("write schema schema file", &path)?;
        }
        Ok(())
    }
/// Writes the `CREATE SCHEMA` schema files.
Writes the `CREATE SCHEMA` schema files.
Writes the ` CREATE SCHEMA ` schema files .
fn write_schema_schema(&self) -> Result<(), S<Error>> {
        let mut schema_names = HashMap::with_capacity(1);
        for table in &self.tables {
            if let (Some(unique_name), Some(name)) = (table.name.unique_schema_name(), table.name.schema_name()) {
                schema_names.insert(unique_name, name);
            }
        }
        for (unique_name, name) in schema_names {
            let path = self.out_dir.join(format!("{}-schema-create.sql", unique_name));
            let mut file = BufWriter::new(File::create(&path).with_path("create schema schema file", &path)?);
            writeln!(file, "CREATE SCHEMA {};", name).with_path("write schema schema file", &path)?;
        }
        Ok(())
    }
fn write_schema_schema ( & self ) -> Result < ( ) , S < Error > > { let mut schema_names = HashMap :: with_capacity ( 1 ) ; for table in & self . tables { if let ( Some ( unique_name ) , Some ( name ) ) = ( table . name . unique_schema_name ( ) , table . name . schema_name ( ) ) { schema_names . insert ( unique_name , name ) ; } } for ( unique_name , name ) in schema_names { let path = self . out_dir . join ( format ! ( " " unique_name ) ) ; let mut file = BufWriter :: new ( File :: create ( & path ) . with_path ( " " , & path ) ? ) ; writeln ! ( file " " name ) . with_path ( " " , & path ) ? ; } Ok ( ( ) ) }
Writes the `CREATE SCHEMA` schema files.
Writes the ` CREATE SCHEMA ` schema files .
&self
&self