pub type RuntimeConnection = AsyncPgConnection;Expand description
The database connection type the runtime is built against.
Defaults to Postgres (AsyncPgConnection). Enabling the crate’s sqlite
feature flips it to a SQLite connection. Threading this alias (instead of a
hard-coded AsyncPgConnection) through the connection-typed surface — the
pool, the pooled connection, the transaction/query helpers, and the
#[repository]/#[model] generated code — is what lets the same codebase
target either backend.
FEATURE-UNIFICATION HAZARD: the sqlite feature must ONLY be enabled by an
end application (or an explicit --features sqlite build). If any workspace
crate or dev-dependency enables it, cargo feature unification flips this
alias for every consumer in the graph and breaks the Postgres default. See
the doc comment above sqlite = [] in autumn/Cargo.toml.
Aliased Type§
pub struct RuntimeConnection { /* private fields */ }