Struct tiberius::Transaction [−][src]
pub struct Transaction<I: BoxableIo>(_);
A transaction
Methods
impl<I: BoxableIo + 'static> Transaction<I>
[src]
impl<I: BoxableIo + 'static> Transaction<I>
pub fn simple_exec<'a, Q>(
self,
query: Q
) -> TransactionFuture<ExecResult<ResultSetStream<I, ExecFuture<I>>>> where
Q: Into<Cow<'a, str>>,
[src]
pub fn simple_exec<'a, Q>(
self,
query: Q
) -> TransactionFuture<ExecResult<ResultSetStream<I, ExecFuture<I>>>> where
Q: Into<Cow<'a, str>>,
pub fn simple_query<'a, Q>(
self,
query: Q
) -> TransactionStream<QueryResult<ResultSetStream<I, QueryStream<I>>>> where
Q: Into<Cow<'a, str>>,
[src]
pub fn simple_query<'a, Q>(
self,
query: Q
) -> TransactionStream<QueryResult<ResultSetStream<I, QueryStream<I>>>> where
Q: Into<Cow<'a, str>>,
pub fn exec<S: Into<Statement>>(
self,
stmt: S,
params: &[&ToSql]
) -> TransactionFuture<ExecResult<StmtStream<I, ExecFuture<I>>>>
[src]
pub fn exec<S: Into<Statement>>(
self,
stmt: S,
params: &[&ToSql]
) -> TransactionFuture<ExecResult<StmtStream<I, ExecFuture<I>>>>
pub fn query<S: Into<Statement>>(
self,
stmt: S,
params: &[&ToSql]
) -> TransactionStream<QueryResult<StmtStream<I, QueryStream<I>>>>
[src]
pub fn query<S: Into<Statement>>(
self,
stmt: S,
params: &[&ToSql]
) -> TransactionStream<QueryResult<StmtStream<I, QueryStream<I>>>>
pub fn prepare<S>(&self, stmt: S) -> Statement where
S: Into<Cow<'static, str>>,
[src]
pub fn prepare<S>(&self, stmt: S) -> Statement where
S: Into<Cow<'static, str>>,
ⓘImportant traits for Box<R>pub fn commit(self) -> Box<Future<Item = SqlConnection<I>, Error = Error>>
[src]
ⓘImportant traits for Box<R>
pub fn commit(self) -> Box<Future<Item = SqlConnection<I>, Error = Error>>
Commits a transaction
ⓘImportant traits for Box<R>pub fn rollback(self) -> Box<Future<Item = SqlConnection<I>, Error = Error>>
[src]
ⓘImportant traits for Box<R>
pub fn rollback(self) -> Box<Future<Item = SqlConnection<I>, Error = Error>>
Rollback a transaction
Auto Trait Implementations
impl<I> Send for Transaction<I>
impl<I> Send for Transaction<I>
impl<I> Sync for Transaction<I> where
I: Sync,
impl<I> Sync for Transaction<I> where
I: Sync,