pub struct ReadCapture { /* private fields */ }Expand description
What a read context’s statements read. Each statement running has its own frame, innermost last, so a statement a row mapper starts records its own reads and leaves the statement around it with its own. The first frame holds reads made outside any statement.
Implementations§
Source§impl ReadCapture
impl ReadCapture
Sourcepub fn new(whole: Arc<WholeViews>) -> Self
pub fn new(whole: Arc<WholeViews>) -> Self
A capture with one frame, for reads made outside any statement.
Sourcepub fn read(&mut self, table: &str, column: &str, accessor: Option<&str>)
pub fn read(&mut self, table: &str, column: &str, accessor: Option<&str>)
The statement being prepared read column of table, through the
view or CTE accessor when it names one.
Sourcepub fn replay(&mut self, recorded: &ReadFrame)
pub fn replay(&mut self, recorded: &ReadFrame)
The statement being run read what recorded holds when it was
prepared.
Auto Trait Implementations§
impl Freeze for ReadCapture
impl RefUnwindSafe for ReadCapture
impl Send for ReadCapture
impl Sync for ReadCapture
impl Unpin for ReadCapture
impl UnsafeUnpin for ReadCapture
impl UnwindSafe for ReadCapture
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