[][src]Struct odbc_futures::SqlStatement

pub struct SqlStatement { /* fields omitted */ }

Methods

impl SqlStatement[src]

pub fn new(connection: &Arc<RwLock<SqlConnection>>) -> SqlResult<SqlStatement>[src]

pub fn set_async(&mut self, is_async: bool) -> SqlResult[src]

pub fn get_async(&self) -> SqlResult<bool>[src]

pub fn bind_parameter<TValue, TContext>(
    &mut self,
    parameter_number: SQLUSMALLINT,
    value: TValue,
    options: Option<SqlBindParameterOptions>
) -> SqlResult where
    TValue: SqlValue<TContext> + 'static,
    SqlValueContext: AsMut<TContext>, 
[src]

pub fn bind_boxed_parameter<TValue, TContext>(
    &mut self,
    parameter_number: SQLUSMALLINT,
    value: Box<TValue>,
    options: Option<SqlBindParameterOptions>
) -> SqlResult where
    TValue: SqlValue<TContext> + 'static,
    SqlValueContext: AsMut<TContext>, 
[src]

pub fn reset_parameters(&mut self) -> SqlResult[src]

pub fn unbind(&mut self) -> SqlResult[src]

pub fn close(&mut self) -> SqlResult[src]

pub fn prepare(&mut self, statement_text: &str) -> SqlResult[src]

pub fn row_count(&self) -> SqlResult<Option<usize>>[src]

pub fn prepare_async(self, statement_text: &str) -> SqlFuture<SqlStatement>[src]

pub fn exec(&mut self) -> SqlResult[src]

pub fn exec_async(self) -> SqlFuture<SqlStatement>[src]

pub fn exec_direct(&mut self, statement_text: &str) -> SqlResult[src]

pub fn exec_direct_async(self, statement_text: &str) -> SqlFuture<SqlStatement>[src]

pub fn get_type_info_async(
    self,
    data_type: Option<SqlDataType>
) -> impl Future<Item = SqlStatementStream<SqlTypeInfo>, Error = (SqlError, SqlStatement)> + Send
[src]

pub fn get_type_info_collect_async(
    self,
    data_type: Option<SqlDataType>
) -> impl Future<Item = (Vec<SqlTypeInfo>, SqlStatement), Error = (SqlError, SqlStatement)> + Send
[src]

pub fn exec_direct_stream_async<T>(
    self,
    statement_text: &str
) -> impl Future<Item = SqlStatementStream<T>, Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn exec_direct_collect_async<T>(
    self,
    statement_text: &str
) -> impl Future<Item = (Vec<T>, SqlStatement), Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn exec_stream_async<T>(
    self
) -> impl Future<Item = SqlStatementStream<T>, Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn exec_collect_async<T>(
    self
) -> impl Future<Item = (Vec<T>, SqlStatement), Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn more_results_stream_async<T>(
    self
) -> impl Future<Item = Either<SqlStatementStream<T>, SqlStatement>, Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn more_results_collect_async<T>(
    self
) -> impl Future<Item = (Option<Vec<T>>, SqlStatement), Error = (SqlError, SqlStatement)> + Send where
    T: SqlColumns
[src]

pub fn connection(&self) -> Arc<RwLock<SqlConnection>>[src]

Trait Implementations

impl SqlHandle for SqlStatement[src]

impl Send for SqlStatement[src]

impl Drop for SqlStatement[src]

impl Sync for SqlStatement[src]

impl Debug for SqlStatement[src]

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.