rorm_transaction_commit

Commits a transaction.

All previous operations will be applied to the database.

extern (C)
void
rorm_transaction_commit

Parameters

transaction DBTransactionHandle

Pointer to a valid transaction, provided by rorm_db_start_transaction.

callback DBTransactionCommitCallback

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