Function yrs::ytransaction_new[][src]

#[no_mangle]
pub unsafe extern "C" fn ytransaction_new(
    doc: *mut Doc
) -> *mut Transaction
Expand description

Starts a new read-write transaction on a given document. All other operations happen in context of a transaction. Yrs transactions do not follow ACID rules. Once a set of operations is complete, a transaction can be finished using ytransaction_commit function.