rorm_transaction_rollback

Rollback a transaction and abort it.

All previous operations will be discarded.

extern (C)
void
rorm_transaction_rollback

Parameters

transaction DBTransactionHandle

Pointer to a valid transaction, provided by rorm_db_start_transaction.

callback DBTransactionRollbackCallback

callback function. Takes the context and an Error.

context void*

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.

Meta