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
445 446 447 448 |
# File 'lib/jdbc-helper/connection.rb', line 445 def commit @conn.commit raise Commit end |
#rollback ⇒ Object
Rolls back this transaction
451 452 453 454 |
# File 'lib/jdbc-helper/connection.rb', line 451 def rollback @conn.rollback raise Rollback end |