Skip to main content

TableOperations

Trait TableOperations 

Source
pub trait TableOperations {
    // Required methods
    fn insert_table(
        &mut self,
        table: &Table,
        shape: &RowShape,
        insert: TableInsert<'_>,
    ) -> Result<()>;
    fn update_table(
        &mut self,
        table: &Table,
        ids: &[RowNumber],
        partitions: &[Partition],
        rows: &mut [EncodedTableRowBuilder],
        key_columns: &[usize],
        pres: &[EncodedBytes],
        catalog: &Catalog,
    ) -> Result<Vec<(RowNumber, EncodedBytes)>>;
    fn remove_from_table(
        &mut self,
        catalog: &Catalog,
        table: &Table,
        ids: &[RowNumber],
        partitions: &[Partition],
        displayed: &[EncodedBytes],
    ) -> Result<Vec<(RowNumber, EncodedBytes)>>;
}

Required Methods§

Source

fn insert_table( &mut self, table: &Table, shape: &RowShape, insert: TableInsert<'_>, ) -> Result<()>

Source

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], key_columns: &[usize], pres: &[EncodedBytes], catalog: &Catalog, ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source

fn remove_from_table( &mut self, catalog: &Catalog, table: &Table, ids: &[RowNumber], partitions: &[Partition], displayed: &[EncodedBytes], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TableOperations for AdminTransaction

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, insert: TableInsert<'_>, ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], key_columns: &[usize], pres: &[EncodedBytes], catalog: &Catalog, ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, catalog: &Catalog, table: &Table, ids: &[RowNumber], partitions: &[Partition], displayed: &[EncodedBytes], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

impl TableOperations for CommandTransaction

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, insert: TableInsert<'_>, ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], key_columns: &[usize], pres: &[EncodedBytes], catalog: &Catalog, ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, catalog: &Catalog, table: &Table, ids: &[RowNumber], partitions: &[Partition], displayed: &[EncodedBytes], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

impl TableOperations for Transaction<'_>

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, insert: TableInsert<'_>, ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], key_columns: &[usize], pres: &[EncodedBytes], catalog: &Catalog, ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, catalog: &Catalog, table: &Table, ids: &[RowNumber], partitions: &[Partition], displayed: &[EncodedBytes], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Implementors§