Function rorm::rorm_transaction_commit
source · #[no_mangle]
pub extern "C" fn rorm_transaction_commit(
transaction: Option<Box<Transaction>>,
callback: Option<unsafe extern "C" fn(_: usize, _: Error<'_>)>,
context: usize
)Expand description
Commits a transaction.
All previous operations will be applied to the database.
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.