pub fn backend() -> BackendExpand description
This app’s database backend - see Backend. Checks the task-local
override first (set only inside with_pool_override, alongside
POOL_OVERRIDE), then falls back to the process-wide [BACKEND] -
the identical two-step pool itself already uses for POOL/
POOL_OVERRIDE, kept consistent for the same reason: code that
branches on backend() to decide which dialect of SQL to emit must
agree with whichever pool pool() actually resolves to in the same
task, not whatever backend happened to connect first in the process.
Panics if neither is set, matching larust_core::config()’s own “real
caller-contract violation” reasoning (nothing before connect()/
with_pool_override could plausibly need to know the backend either).