Struct mysql_async::Transaction [] [src]

pub struct Transaction<T>(_);

This struct represents MySql transaction.

Transaction it's a sugar for START TRANSACTION, ROLLBACK and COMMIT queries, so one should note that it is easy to mess things up calling this queries manually. Also you will get NestedTransaction error if you call transaction.start_transaction(_).

Methods

impl<T: Queryable + ConnectionLike> Transaction<T>
[src]

[src]

Returns future that will perform COMMIT query and resolve to a wrapped Queryable.

[src]

Returns future that will perform ROLLBACK query and resolve to a wrapped Queryable.

Trait Implementations

impl<T: Queryable + ConnectionLike> Queryable for Transaction<T>
[src]

[src]

Returns future that resolves to Conn if COM_PING executed successfully.

[src]

Returns future that disconnects this connection from a server.

[src]

Returns future that performs query.

[src]

Returns future that resolves to a first row of result of a query execution (if any). Read more

[src]

Returns future that performs query. Result will be dropped.

[src]

Returns future that prepares statement.

[src]

Returns future that prepares and executes statement in one pass.

[src]

Returns future that resolves to a first row of result of a statement execution (if any). Read more

[src]

Returns future that prepares and executes statement. Result will be dropped.

[src]

Returns future that prepares statement and performs batch execution. Results will be dropped. Read more

[src]

Returns future that starts transaction.