Sha256: 5123188932f9555fda14a0670de7301b5fbc45291d42f37d9060eb3b5c9d9e64
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
## Installation Add this line to your application's Gemfile: gem 'sequel_transaction' And then execute: $ bundle Or install it yourself as: $ gem install sequel_transaction ## Sidekiq Wireup To automatically wrap Sidekiq work processes in a transaction, add the following: ```ruby Sidekiq.configure_server do |c| c.server_middleware do |chain| chain.add Sidekiq::Middleware::Server::Transaction, connection: Sequel.connect('sqlite:///') end end ``` ## Rack Wireup To automatically wrap requests in a transaction, add the following: ```ruby use Rack::Transaction, connection: Sequel.connect('sqlite:///') ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sequel_transaction-0.2.2 | README.md |
sequel_transaction-0.2.1 | README.md |