pub struct Cursor {
pub name: String,
pub query: Box<SelectStmt>,
pub result: Option<CursorResult>,
pub position: usize,
pub scroll: bool,
pub holdable: bool,
pub insensitive: bool,
}Expand description
A cursor holding query definition and materialized results
Fields§
§name: StringCursor name
query: Box<SelectStmt>The SELECT query for this cursor
result: Option<CursorResult>Materialized results (populated on OPEN)
position: usizeCurrent position (0 = before first row, 1 = first row, etc.)
scroll: boolWhether cursor supports backward movement
holdable: boolWhether cursor survives transaction commit (WITH HOLD)
insensitive: boolWhether cursor uses snapshot isolation (INSENSITIVE)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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