Skip to content

Commit

Permalink
Add freelist_table_stat functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
DvirYo-starkware committed Feb 26, 2024
1 parent 0f3823b commit 68d27eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ where
}
}

/// Retrieves the freelist table statistics.
pub fn freelist_table_stat(&self) -> Result<Stat> {
self.table_stat(&Table::freelist_table())
}

/// Open a new cursor on the given table.
pub fn cursor<'txn>(&'txn self, table: &Table<'txn>) -> Result<Cursor<'txn, K>> {
Cursor::new(self, table)
Expand Down

0 comments on commit 68d27eb

Please sign in to comment.