pub struct CursorStore { /* private fields */ }Expand description
Storage for cursors within a session
Implementations§
Source§impl CursorStore
impl CursorStore
Sourcepub fn declare(&mut self, stmt: &DeclareCursorStmt) -> Result<(), ExecutorError>
pub fn declare(&mut self, stmt: &DeclareCursorStmt) -> Result<(), ExecutorError>
Declare a new cursor
Sourcepub fn open(
&mut self,
stmt: &OpenCursorStmt,
db: &Database,
) -> Result<(), ExecutorError>
pub fn open( &mut self, stmt: &OpenCursorStmt, db: &Database, ) -> Result<(), ExecutorError>
Open a cursor (execute query and materialize results)
Sourcepub fn fetch(&mut self, stmt: &FetchStmt) -> Result<FetchResult, ExecutorError>
pub fn fetch(&mut self, stmt: &FetchStmt) -> Result<FetchResult, ExecutorError>
Fetch from a cursor
Sourcepub fn close(&mut self, stmt: &CloseCursorStmt) -> Result<(), ExecutorError>
pub fn close(&mut self, stmt: &CloseCursorStmt) -> Result<(), ExecutorError>
Close a cursor
Sourcepub fn clear_non_holdable(&mut self)
pub fn clear_non_holdable(&mut self)
Clear all non-holdable cursors (called on transaction commit/rollback)
Trait Implementations§
Source§impl Debug for CursorStore
impl Debug for CursorStore
Source§impl Default for CursorStore
impl Default for CursorStore
Source§fn default() -> CursorStore
fn default() -> CursorStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CursorStore
impl RefUnwindSafe for CursorStore
impl Send for CursorStore
impl Sync for CursorStore
impl Unpin for CursorStore
impl UnwindSafe for CursorStore
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more