Struct garage_table::table::Table
source · pub struct Table<F: TableSchema, R: TableReplication> {
pub system: Arc<System>,
pub data: Arc<TableData<F, R>>,
pub merkle_updater: Arc<MerkleUpdater<F, R>>,
pub syncer: Arc<TableSyncer<F, R>>,
/* private fields */
}
Fields§
§system: Arc<System>
§data: Arc<TableData<F, R>>
§merkle_updater: Arc<MerkleUpdater<F, R>>
§syncer: Arc<TableSyncer<F, R>>
Implementations§
source§impl<F: TableSchema, R: TableReplication> Table<F, R>
impl<F: TableSchema, R: TableReplication> Table<F, R>
pub fn new(instance: F, replication: R, system: Arc<System>, db: &Db) -> Arc<Self>
pub fn spawn_workers(self: &Arc<Self>, bg: &BackgroundRunner)
pub async fn insert(&self, e: &F::E) -> Result<(), Error>
sourcepub fn queue_insert(
&self,
tx: &mut Transaction<'_>,
e: &F::E
) -> TxResult<(), Error>
pub fn queue_insert( &self, tx: &mut Transaction<'_>, e: &F::E ) -> TxResult<(), Error>
Insert item locally