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,
    error: *mut ExternError
) -> *mut TxReport

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

Returns a Result

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