Skip to content

Commit

Permalink
Implement TableHandle for ReadOnlyTable
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero authored and cberner committed Oct 26, 2024
1 parent 8ea5062 commit a0d0d36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ pub struct ReadOnlyTable<K: Key + 'static, V: Value + 'static> {
transaction_guard: Arc<TransactionGuard>,
}

impl<K: Key + 'static, V: Value + 'static> TableHandle for ReadOnlyTable<K, V> {
fn name(&self) -> &str {
&self.name
}
}

impl<K: Key + 'static, V: Value + 'static> ReadOnlyTable<K, V> {
pub(crate) fn new(
name: String,
Expand Down

0 comments on commit a0d0d36

Please sign in to comment.