pub struct ConstraintManager { /* private fields */ }Expand description
The goal of the constraint manager is to ensure all constraints are satisfied before we hand it off deeper into the stack. For now its taking on the null checks of RowData
Implementations§
Source§impl ConstraintManager
impl ConstraintManager
pub fn new( index_manager: IndexManager, vis_row_man: VisibleRowManager, ) -> ConstraintManager
pub async fn insert_row( &mut self, current_tran_id: TransactionId, table: &Arc<Table>, user_data: SqlTuple, ) -> Result<ItemPointer, ConstraintManagerError>
Sourcepub async fn get(
&mut self,
tran_id: TransactionId,
table: &Arc<Table>,
row_pointer: ItemPointer,
) -> Result<RowData, ConstraintManagerError>
pub async fn get( &mut self, tran_id: TransactionId, table: &Arc<Table>, row_pointer: ItemPointer, ) -> Result<RowData, ConstraintManagerError>
Gets a specific tuple from below, at the moment just a passthrough
Sourcepub fn get_stream(
self,
tran_id: TransactionId,
table: Arc<Table>,
) -> impl Stream<Item = Result<RowData, ConstraintManagerError>>
pub fn get_stream( self, tran_id: TransactionId, table: Arc<Table>, ) -> impl Stream<Item = Result<RowData, ConstraintManagerError>>
Provides a filtered view that respects transaction visibility At the moment this is practically just a passthrough
Trait Implementations§
Source§impl Clone for ConstraintManager
impl Clone for ConstraintManager
Source§fn clone(&self) -> ConstraintManager
fn clone(&self) -> ConstraintManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConstraintManager
impl !RefUnwindSafe for ConstraintManager
impl Send for ConstraintManager
impl Sync for ConstraintManager
impl Unpin for ConstraintManager
impl !UnwindSafe for ConstraintManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more