Build a series of queries into a transaction. More...
|Ties query objects to their statements. More...|
|typedef std::vector< Item >|
|void||push (QueryPar &query, T &statement)|
|Add a query to the transaction. |
|Remove all queries from the transaction. |
|Return a starting iterator. |
|Return a end iterator. |
|Return true if the transaction is empty. |
|Cancel all queries in the transaction. |
|void||start (int instance=-1)|
|Initiate the transaction. |
|std::vector< Item >||m_items|
Build a series of queries into a transaction.
By using this class to execute a series of queries you let the ASql engine handle insuring they are executed sequentially. Should an error or cancellation crop up in one query all changes made by preceding queries in the transaction will be rolled back and proceeding queries in the transaction will be dumped from the queue.
Note that if an error or cancellation occurs in a query that has no callback function, proceeding queries in the transaction will be checked for callback functions and the first one found will be called.
Note that the statement obviously MUST all be from the same connection.