Struct garage_model::s3::block_ref_table::BlockRefTable
source · pub struct BlockRefTable {
pub block_manager: Arc<BlockManager>,
}
Fields§
§block_manager: Arc<BlockManager>
Trait Implementations§
source§impl TableSchema for BlockRefTable
impl TableSchema for BlockRefTable
source§const TABLE_NAME: &'static str = "block_ref"
const TABLE_NAME: &'static str = "block_ref"
The name of the table in the database
§type P = FixedBytes32
type P = FixedBytes32
The partition key used in that table
§type S = FixedBytes32
type S = FixedBytes32
The sort key used int that table
§type Filter = DeletedFilter
type Filter = DeletedFilter
The type for a filter that can be applied to select entries
(e.g. filter out deleted entries)
source§fn updated(
&self,
tx: &mut Transaction<'_>,
old: Option<&Self::E>,
new: Option<&Self::E>
) -> TxOpResult<()>
fn updated( &self, tx: &mut Transaction<'_>, old: Option<&Self::E>, new: Option<&Self::E> ) -> TxOpResult<()>
Actions triggered by data changing in a table. If such actions
include updates to the local database that should be applied
atomically with the item update itself, a db transaction is
provided on which these changes should be done.
This function can return a DB error but that’s all.