Skip to main content

begin

Function begin 

Source
pub async fn begin<C: TransactionTrait>(db: &C) -> Result<C::Transaction>
Expand description

Begins and returns a transaction so the caller can commit or roll it back.

This centralizes begin error mapping.