MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / scan_rows

Method scan_rows

crates/table/src/table.rs:1535–1542  ·  view source on GitHub ↗

Returns an iterator over all the rows of `self`, yielded as [`RowRef`]s.

(&'a self, blob_store: &'a dyn BlobStore)

Source from the content-addressed store, hash-verified

1533
1534 /// Returns an iterator over all the rows of `self`, yielded as [`RowRef`]s.
1535 pub fn scan_rows<'a>(&'a self, blob_store: &'a dyn BlobStore) -> TableScanIter<'a> {
1536 TableScanIter {
1537 current_page: None, // Will be filled by the iterator.
1538 current_page_idx: PageIndex(0),
1539 table: self,
1540 blob_store,
1541 }
1542 }
1543
1544 /// Returns a list of all present row pointers.
1545 pub fn scan_all_row_ptrs(&self) -> Vec<RowPointer> {

Callers 15

build_indexesMethod · 0.80
ephemeral_tablesMethod · 0.80
build_missing_tablesMethod · 0.80
build_sequence_stateMethod · 0.80
table_scanMethod · 0.80
collect_insertsMethod · 0.80
newMethod · 0.80
nextMethod · 0.80
views_for_refreshMethod · 0.80
create_indexMethod · 0.80
clear_tableMethod · 0.80
insert_indexMethod · 0.80

Calls 1

PageIndexClass · 0.85

Tested by 1