Skip to main content

model_alias

Function model_alias 

Source
pub fn model_alias(model_name: &str) -> Option<String>
Expand description

Look up the database alias for one model. Returns None if the model isn’t routed explicitly (the caller falls back to the "default" pool); returns None even when the alias map hasn’t been initialised so low-level tests that drive init_plugins directly don’t have to wire a second call.