pub type RuntimeBackend = Pg;Expand description
The diesel query backend the runtime is built against โ the companion of
RuntimeConnection.
Defaults to Postgres (diesel::pg::Pg); the sqlite feature flips it to
diesel::sqlite::Sqlite. Generated #[repository]/#[model] CRUD names
this alias (as ::autumn_web::RuntimeBackend) wherever a diesel
QueryFragment<_> / SelectableHelper<_> bound must resolve to the active
backend rather than a hard-coded Pg. Threading it (instead of Pg) through
the always-emitted upsert set-clause and boxed-query types is what lets the
same generated code type-check on either backend. Genuinely Postgres-only
query fragments (advisory-lock upserts, FTS searchable) keep an explicit
Pg bound โ they are not portable and are cfg-gated off under sqlite.
Aliased Typeยง
pub struct RuntimeBackend;