Function ywasm::create_sticky_index_from_type

source ยท
pub fn create_sticky_index_from_type(
    ytype: &JsValue,
    index: u32,
    assoc: i32,
    txn: &ImplicitTransaction
) -> Result<JsValue, JsValue>
Expand description

Retrieves a sticky index corresponding to a given human-readable index pointing into the shared ytype. Unlike standard indexes sticky indexes enables to track the location inside of a shared y-types, even in the face of concurrent updates.

If association is >= 0, the resulting position will point to location after the referenced index. If association is < 0, the resulting position will point to location before the referenced index.