MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / iter_binding_ids

Method iter_binding_ids

atomic-core/src/pristine/txn/read.rs:2978–2990  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2976 }
2977
2978 fn iter_binding_ids(&self) -> PristineResult<Vec<[u8; 32]>> {
2979 let table = match self.txn.open_table(BINDINGS) {
2980 Ok(table) => table,
2981 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(Vec::new()),
2982 Err(error) => return Err(PristineError::from(error)),
2983 };
2984 let mut ids = Vec::new();
2985 for row in table.iter()? {
2986 let (key, _) = row?;
2987 ids.push(*key.value());
2988 }
2989 Ok(ids)
2990 }
2991}
2992
2993// ============================================================================

Callers 3

binding_idsMethod · 0.45

Calls 3

valueMethod · 0.80
iterMethod · 0.45
pushMethod · 0.45

Tested by 1