/dm-nested-transactions

Adds nested transaction support to DataMapper

Primary LanguageRuby

dm-nested-transactions
----------------------

Adds nested transaction support to DataMapper. Only tested with Postgres, and it's a bit of a hack, so use at your own risk!

Install:
  gem install dm-nested-transactions

Usage:
  repository.adapter.extend(DataMapper::NestedTransactions)

There's a rails/init.rb file that automatically does the above for you. If you are using rails, you probably also want xaviershay-dm-rails since dm-rails 10.2 is broken with transactions.