pub trait Inserter: Send + Sync {
// Required methods
fn insert_rows<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 Context<'life2>,
requests: RowInsertRequests,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn set_options(&mut self, options: &InsertOptions);
}
Expand description
Inserter
allows different components to share a unified mechanism for inserting data.
An implementation may perform the insert locally (e.g., via a direct procedure call) or delegate/forward it to another node for processing (e.g., MetaSrv forwarding to an available Frontend).