rorm_db_start_transaction

Starts a transaction on the current database connection.

extern (C)
void
rorm_db_start_transaction

Parameters

db DBHandle

Reference to the Database, provided by rorm_db_connect.

callback DBStartTransactionCallback

callback function. Takes the context, a pointer to a transaction and an Error.

context void*

Pass through void pointer.

**Important**: Rust does not manage the memory of the transaction. To properly free it, use rorm_transaction_free, rorm_transaction_commit or rorm_transaction_abort.

This function is called from an asynchronous context.

Meta