pub trait HandlerContext: Sealed {
// Required methods
fn db(&self) -> ForgeDb;
fn db_conn(&self) -> DbConn<'_>;
}Expand description
Base trait for all Forge handler contexts.
Provides access to the database pool — the one capability shared by every handler kind (queries, mutations, jobs, crons, daemons, webhooks, workflows, MCP tools).
Sealed: only forge-core can implement this trait.