database_flusher 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/database_flusher.rb +1 -0
- data/lib/database_flusher/active_record/adapters/abstract_adapter.rb +1 -0
- data/lib/database_flusher/active_record/adapters/mysql2_adapter.rb +1 -0
- data/lib/database_flusher/active_record/adapters/postgresql_adapter.rb +2 -1
- data/lib/database_flusher/active_record/adapters/sqlite_adapter.rb +1 -0
- data/lib/database_flusher/active_record/deletion_strategy.rb +1 -0
- data/lib/database_flusher/active_record/transaction_strategy.rb +1 -0
- data/lib/database_flusher/cleaner.rb +1 -0
- data/lib/database_flusher/mongoid/deletion_strategy.rb +1 -0
- data/lib/database_flusher/null_strategy.rb +1 -0
- data/lib/database_flusher/version.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd3ca4c9c2b757975e1eee5bc86ff3e4abb3c71e
|
4
|
+
data.tar.gz: 33476f378b785b6430153ae42ffd357151ea2d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83cdd2965b69e1da78a670f72bdd57b6df616fecc1d52dd79389324e005441f43c677180d3ab5b24d1536d0c869d12e25816f368eab92a77793c54a178e96177
|
7
|
+
data.tar.gz: 2bfb080ce5e88077939071d8dddb0b099fab1787238f5b9a4848de35c258e23dd5d73ba4fa4c3ebd1c1b7b458a823e4f04fae6df0ea31adf08a5fcccf82cd9dd
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# DatabaseFlusher
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/ebeigarts/database_flusher.svg?branch=master)](https://travis-ci.org/ebeigarts/database_flusher)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/ebeigarts/database_flusher/badges/gpa.svg)](https://codeclimate.com/github/ebeigarts/database_flusher)
|
4
5
|
|
5
6
|
database_flusher is a tiny and fast database cleaner inspired by [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) and [database_rewinder](https://github.com/amatsuda/database_rewinder).
|
6
7
|
|
data/lib/database_flusher.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
module DatabaseFlusher
|
2
3
|
module ActiveRecord
|
3
4
|
class PostgreSQLAdapter < AbstractAdapter
|
4
5
|
private
|
5
6
|
|
6
|
-
def disable_referential_integrity(*tables
|
7
|
+
def disable_referential_integrity(*tables)
|
7
8
|
begin
|
8
9
|
execute(tables.collect { |name| "ALTER TABLE #{quote_table_name(name)} DISABLE TRIGGER ALL" }.join(";"))
|
9
10
|
rescue
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_flusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.5.2
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: super-fast database cleaner
|