rs_split_table/rdb/
insert.rs

1//! Traits for insert.
2
3use tonic::Status;
4
5/// Tries to insert a row to a table.
6#[tonic::async_trait]
7pub trait Insert: Sync + Send + 'static {
8    type Row: Send + Sync;
9    async fn insert_to_table(
10        &self,
11        checked_table_name: &str,
12        row: &Self::Row,
13    ) -> Result<u64, Status>;
14}