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]
impl<'o, S> Cursor for CursorImpl<'o, S> where
S: BorrowMut<StatementImpl<'o>>,
[src]type Statement = StatementImpl<'o>
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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
impl<'o, S> Drop for CursorImpl<'o, S> where
S: BorrowMut<StatementImpl<'o>>,
[src]
impl<'o, S> Drop for CursorImpl<'o, S> where
S: BorrowMut<StatementImpl<'o>>,
[src]Auto Trait Implementations
impl<'open_connection, Stmt> RefUnwindSafe for CursorImpl<'open_connection, Stmt> where
Stmt: RefUnwindSafe,
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,
Stmt: Unpin,
impl<'open_connection, Stmt> UnwindSafe for CursorImpl<'open_connection, Stmt> where
Stmt: UnwindSafe,
Stmt: UnwindSafe,