Struct odbc_api::CursorImpl[][src]

pub struct CursorImpl<'open_connection, Stmt: BorrowMut<StatementImpl<'open_connection>>> { /* fields omitted */ }
Expand description

Cursors are used to process and iterate the result sets returned by executing queries. Created by either a prepared query or direct execution. Usually utilized through the crate::Cursor trait.

Trait Implementations

impl<'o, S> Cursor for CursorImpl<'o, S> where
    S: BorrowMut<StatementImpl<'o>>, 
[src]

type Statement = StatementImpl<'o>

Statement type of the cursor. This is always an instantiation of crate::handles::Statement with a generic parameter indicating the lifetime of the associated connection. Read more

unsafe fn stmt(&mut self) -> &mut Self::Statement[src]

Provides access to the underlying statement handle. Read more

fn describe_col(
    &self,
    column_number: u16,
    column_description: &mut ColumnDescription
) -> Result<(), Error>
[src]

Fetch a column description using the column index. Read more

fn num_result_cols(&self) -> Result<i16, Error>[src]

Number of columns in result set.

fn is_unsigned_column(&self, column_number: u16) -> Result<bool, Error>[src]

true if a given column in a result set is unsigned or not a numeric type, false otherwise. Read more

fn bind_buffer<B>(
    self,
    row_set_buffer: B
) -> Result<RowSetCursor<Self, B>, Error> where
    B: RowSetBuffer
[src]

Binds this cursor to a buffer holding a row set.

fn col_data_type(&self, column_number: u16) -> Result<DataType, Error>[src]

Data type of the specified column. Read more

fn col_octet_length(&self, column_number: u16) -> Result<isize, Error>[src]

Returns the size in bytes of the columns. For variable sized types the maximum size is returned, excluding a terminating zero. Read more

fn col_display_size(&self, column_number: u16) -> Result<isize, Error>[src]

Maximum number of characters required to display data from the column. Read more

fn col_precision(&self, column_number: u16) -> Result<isize, Error>[src]

Precision of the column. Read more

fn col_scale(&self, column_number: u16) -> Result<isize, Error>[src]

The applicable scale for a numeric data type. For DECIMAL and NUMERIC data types, this is the defined scale. It is undefined for all other data types. Read more

fn col_name(&self, column_number: u16, buf: &mut Vec<u16>) -> Result<(), Error>[src]

The column alias, if it applies. If the column alias does not apply, the column name is returned. If there is no column name or a column alias, an empty string is returned. Read more

fn column_names(&self) -> Result<ColumnNamesIt<'_, Self>, Error>[src]

Use this if you want to iterate over all column names and allocate a String for each one. Read more

fn next_row(&mut self) -> Result<Option<CursorRow<'_, Self::Statement>>, Error>[src]

Advances the cursor to the next row in the result set. Read more

impl<'o, S> Drop for CursorImpl<'o, S> where
    S: BorrowMut<StatementImpl<'o>>, 
[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'open_connection, Stmt> RefUnwindSafe for CursorImpl<'open_connection, Stmt> where
    Stmt: RefUnwindSafe

impl<'open_connection, Stmt> !Send for CursorImpl<'open_connection, Stmt>

impl<'open_connection, Stmt> !Sync for CursorImpl<'open_connection, Stmt>

impl<'open_connection, Stmt> Unpin for CursorImpl<'open_connection, Stmt> where
    Stmt: Unpin

impl<'open_connection, Stmt> UnwindSafe for CursorImpl<'open_connection, Stmt> where
    Stmt: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.