Function rorm::rorm_transaction_rollback
source · #[no_mangle]
pub extern "C" fn rorm_transaction_rollback(
transaction: Option<Box<Transaction>>,
callback: Option<unsafe extern "C" fn(_: usize, _: Error<'_>)>,
context: usize
)Expand description
Rollback a transaction and abort it.
All previous operations will be discarded.
Parameter:
transaction: Pointer to a valid transaction, provided by rorm_db_start_transaction.callback: callback function. Takes thecontextand an Error.context: Pass through void pointer.
Important:
Rust takes ownership of transaction and frees it after using.
Don’t use it anywhere else after calling this function!
This function is called from an asynchronous context.