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