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