rorm_db_update

This function updates rows in the database.

Parameters

db DBHandle

Reference to the Database, provided by rorm_db_connect.

transaction DBTransactionHandle

Mutable pointer to a Transaction. Can be a null pointer to ignore this parameter.

model FFIString

Name of the table to query.

updates FFIArray!FFIUpdate

List of FFIUpdate to apply.

condition const(FFICondition)*

Pointer to a Condition.

callback DBUpdateCallback

callback function. Takes the context, the rows affected and an Error.

context void*

Pass through void pointer.

**Important**: - Make sure that db, model, updates and condition are allocated until the callback is executed.

This function is called from an asynchronous context.

Meta