Skip to main content

resolve_or

Function resolve_or 

Source
pub fn resolve_or(
    overrides: &ColumnOverrides,
    column: &str,
    autodetect: impl FnOnce() -> RivetType,
) -> RivetType
Expand description

The override precedence shared by every source engine: a columns: override wins; otherwise fall back to the engine’s autodetected type. Keeping it in one place is why PostgreSQL and MySQL resolution can’t drift on precedence — each driver supplies only its own autodetect closure.