pub struct OpenCursor {
pub with_hold: bool,
pub positioned: bool,
pub statement: Option<String>,
pub held: VecDeque<Vec<Value>>,
pub current: usize,
pub rowset_size: Option<u32>,
}Fields§
§with_hold: bool§positioned: boolOn a row, so a positioned UPDATE or DELETE has one to change.
statement: Option<String>The prepared statement a cursor for one runs.
held: VecDeque<Vec<Value>>The rows from the current position’s first: the current rowset’s, then those a rowset FETCH read ahead of a row FETCH, which moves from the rowset’s first row (Db2 13 SQL, FETCH, Table 6).
current: usizeHow many of held the current position takes, 0 before the first.
rowset_size: Option<u32>The rows the last FETCH asked for, when it was a rowset FETCH, which the next asks for again without FOR n ROWS.
Implementations§
Source§impl OpenCursor
impl OpenCursor
Sourcepub fn on_backend_row(&self) -> bool
pub fn on_backend_row(&self) -> bool
Where the backend’s own cursor is: on the one row the position takes.
Trait Implementations§
Source§impl Clone for OpenCursor
impl Clone for OpenCursor
Source§fn clone(&self) -> OpenCursor
fn clone(&self) -> OpenCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenCursor
impl Debug for OpenCursor
Source§impl PartialEq for OpenCursor
impl PartialEq for OpenCursor
impl StructuralPartialEq for OpenCursor
Auto Trait Implementations§
impl Freeze for OpenCursor
impl RefUnwindSafe for OpenCursor
impl Send for OpenCursor
impl Sync for OpenCursor
impl Unpin for OpenCursor
impl UnsafeUnpin for OpenCursor
impl UnwindSafe for OpenCursor
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