xaviershay / dm-nested-transactions

Adds nested transaction support to DataMapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Adds nested transaction support to DataMapper


Languages

Language:Ruby 100.0%