Sha256: 8fce9b27393f0b3d0418c3685690e30b6d5304741b7c6ff765e8034d4076cdcb

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

# Database Cleaner Adapter for Ohm

[![Build Status](https://travis-ci.org/DatabaseCleaner/database_cleaner-ohm.svg?branch=master)](https://travis-ci.org/DatabaseCleaner/database_cleaner-ohm)
[![Code Climate](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-ohm/badges/gpa.svg)](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-ohm)

Clean your Ohm databases with Database Cleaner.

See https://github.com/DatabaseCleaner/database_cleaner for more information.

## Installation

```ruby
# Gemfile
group :test do
  gem 'database_cleaner-ohm'
end
```

## Supported Strategies

<table>
  <tbody>
    <tr>
      <th>Truncation</th>
      <th>Transaction</th>
      <th>Deletion</th>
    </tr>
    <tr>
      <td> <b>Yes</b></td>
      <td> No</td>
      <td> No</td>
    </tr>
  </tbody>
</table>

(Default strategy is denoted in bold)

## Configuration options

`:only` and `:except` take a list of strings to be passed to [`keys`](https://redis.io/commands/keys)).

<table>
  <tbody>
    <tr>
      <th>ORM</th>
      <th>How to access</th>
      <th>Notes</th>
    </tr>
    <tr>
      <td>Ohm</td>
      <td><code>DatabaseCleaner[:ohm]</code></td>
      <td>Connection specified as Redis URI</td>
    </tr>
  </tbody>
</table>

## COPYRIGHT

See [LICENSE] for details.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
database_cleaner-ohm-1.99.0.beta README.md
database_cleaner-ohm-1.8.1 README.md
database_cleaner-ohm-1.8.0 README.md
database_cleaner-ohm-1.8.0.beta README.md