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
449 450 451 452 |
# File 'lib/jdbc-helper/connection.rb', line 449 def commit @conn.commit raise Commit end |
#rollback ⇒ Object
Rolls back this transaction
455 456 457 458 |
# File 'lib/jdbc-helper/connection.rb', line 455 def rollback @conn.rollback raise Rollback end |