Function mentat_ffi::in_progress_transact [] [src]

#[no_mangle]
pub unsafe extern "C" fn in_progress_transact<'m>(
    in_progress: *mut InProgress<'m, 'm>,
    transaction: *const c_char
) -> *mut ExternResult

Perform a single transact operation using the current in progress transaction. Takes edn as a string to transact.

Returns a Result as an ExternResult.

Safety

Callers are responsible for managing the memory for the return value. A destructor tx_report_destroy is provided for releasing the memory for this pointer type.

TODO: Document the errors that can result from transact