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

Method iter_binding_ids

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

Source from the content-addressed store, hash-verified

3005 }
3006
3007 fn iter_binding_ids(&self) -> PristineResult<Vec<[u8; 32]>> {
3008 let table = match self.txn.open_table(BINDINGS) {
3009 Ok(table) => table,
3010 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(Vec::new()),
3011 Err(error) => return Err(PristineError::from(error)),
3012 };
3013 let mut ids = Vec::new();
3014 for row in table.iter()? {
3015 let (key, _) = row?;
3016 ids.push(*key.value());
3017 }
3018 Ok(ids)
3019 }
3020}
3021
3022// ============================================================================

Callers 3

binding_idsMethod · 0.45

Calls 3

iterMethod · 0.45
pushMethod · 0.45
valueMethod · 0.45

Tested by 1