MCPcopy Create free account
hub / github.com/dfinity/orbit / len

Method len

libs/orbit-essentials/src/repository.rs:109–111  ·  view source on GitHub ↗

Returns the number of records stored in the repository.

(&self)

Source from the content-addressed store, hash-verified

107
108 /// Returns the number of records stored in the repository.
109 fn len(&self) -> usize {
110 Self::with_db(|db| db.len() as usize)
111 }
112
113 /// Returns whether the repository is empty or not.
114 fn is_empty(&self) -> bool {

Callers 9

fetch_extra_chunksFunction · 0.45
rebuildMethod · 0.45
listMethod · 0.45
is_emptyMethod · 0.45
insert_snapshotMethod · 0.45
paginated_itemsFunction · 0.45
newMethod · 0.45

Implementers 15

asset.rscore/station/impl/src/repositories/ass
notification.rscore/station/impl/src/repositories/not
user_group.rscore/station/impl/src/repositories/use
request_evaluation_result.rscore/station/impl/src/repositories/req
request_policy.rscore/station/impl/src/repositories/req
account.rscore/station/impl/src/repositories/acc
request.rscore/station/impl/src/repositories/req
user.rscore/station/impl/src/repositories/use
address_book.rscore/station/impl/src/repositories/add
named_rule.rscore/station/impl/src/repositories/nam
transfer.rscore/station/impl/src/repositories/tra
external_canister.rscore/station/impl/src/repositories/ext

Calls

no outgoing calls

Tested by

no test coverage detected