Class: JDBCHelper::Connection::Transaction
- Inherits:
-
Object
- Object
- JDBCHelper::Connection::Transaction
- Defined in:
- lib/jdbc-helper/connection.rb
Overview
Transaction object passed to the code block given to transaction method
Defined Under Namespace
Instance Method Summary collapse
-
#commit ⇒ Object
Commits the transaction.
-
#rollback ⇒ Object
Rolls back this transaction.
Instance Method Details
#commit ⇒ Object
Commits the transaction
472 473 474 475 |
# File 'lib/jdbc-helper/connection.rb', line 472 def commit @conn.commit raise Commit end |
#rollback ⇒ Object
Rolls back this transaction
478 479 480 481 |
# File 'lib/jdbc-helper/connection.rb', line 478 def rollback @conn.rollback raise Rollback end |