Module: DbAgile::Contract::Robust::Optimistic::Data::TransactionDriven
- Included in:
- DbAgile::Contract::Robust::Optimistic
- Defined in:
- lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb
Instance Method Summary collapse
- #delete(*args, &block) ⇒ Object
- #direct_sql(*args, &block) ⇒ Object
- #insert(*args, &block) ⇒ Object
- #update(*args, &block) ⇒ Object
Instance Method Details
#delete(*args, &block) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb', line 25 def delete(*args, &block) delegate.delete(*args, &block) rescue has_table!(args[1]) raise end |
#direct_sql(*args, &block) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb', line 33 def direct_sql(*args, &block) delegate.direct_sql(*args, &block) rescue has_table!(args[1]) if args[1].kind_of?(::Symbol) raise end |
#insert(*args, &block) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb', line 9 def insert(*args, &block) delegate.insert(*args, &block) rescue has_table!(args[1]) raise end |
#update(*args, &block) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/dbagile/contract/robust/optimistic/data/transaction_driven.rb', line 17 def update(*args, &block) delegate.update(*args, &block) rescue has_table!(args[1]) raise end |