pub fn find_model_by_db_name<'a>(datamodel: &'a Datamodel, db_name: &str) -> Option<ModelWalker<'a>> {
    datamodel
        .models()
        .find(|model| model.database_name() == Some(db_name) || model.name == db_name)
        .map(|model| ModelWalker { datamodel, model })
}
/// Find the model mapping to the passed in database name.
Find the model mapping to the passed in database name.
Find the model mapping to the passed in database name .
pub fn find_model_by_db_name<'a>(datamodel: &'a Datamodel, db_name: &str) -> Option<ModelWalker<'a>> {
    datamodel
        .models()
        .find(|model| model.database_name() == Some(db_name) || model.name == db_name)
        .map(|model| ModelWalker { datamodel, model })
}
pub fn find_model_by_db_name < ' a > ( datamodel : & ' a Datamodel , db_name : & str ) -> Option < ModelWalker < ' a > > { datamodel . models ( ) . find ( | model | model . database_name ( ) == Some ( db_name ) || model . name == db_name ) . map ( | model | ModelWalker { datamodel , model } ) }
Find the model mapping to the passed in database name.
Find the model mapping to the passed in database name .
datamodel
&'a Datamodel
db_name
&str
datamodel
&'a Datamodel
db_name
&str