pub async fn begin_transaction(
conn: SqliteConnection,
translate_placeholders: bool,
) -> Result<Tx, SqlMiddlewareDbError>Expand description
Begin a transaction, consuming the SQLite connection until commit/rollback.
translate_placeholders keeps the pool’s translation default attached so the
connection can be rewrapped after commit/rollback.
§Errors
Returns SqlMiddlewareDbError if the transaction cannot be started.