Function yrs::ybranch_get
source ยท #[no_mangle]
pub unsafe extern "C" fn ybranch_get(
branch_id: *const YBranchId,
txn: *mut Transaction
) -> *mut Branch
Expand description
Given a logical identifier, returns a physical pointer to a shared collection.
Returns null if collection was not found - either because it was not defined or not synchronized
yet.
Returned pointer may still point to deleted collection. In such case a subsequent ybranch_alive
function call is required.