Struct garage_model::s3::version_table::VersionTable
source · pub struct VersionTable {
pub block_ref_table: Arc<Table<BlockRefTable, TableShardedReplication>>,
}
Fields§
§block_ref_table: Arc<Table<BlockRefTable, TableShardedReplication>>
Trait Implementations§
source§impl TableSchema for VersionTable
impl TableSchema for VersionTable
source§const TABLE_NAME: &'static str = "version"
const TABLE_NAME: &'static str = "version"
The name of the table in the database
§type P = FixedBytes32
type P = FixedBytes32
The partition key used in 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.