Skip to main content

get_backend

Function get_backend 

Source
pub fn get_backend(
    name: &str,
    engine: &str,
) -> Result<Box<dyn CodegenBackend>, ScytheError>
Expand description

Get a backend by name and database engine.

The engine parameter (e.g., “postgresql”, “mysql”, “sqlite”) determines which manifest is loaded for type mappings. PG-only backends reject non-PG engines.