Sha256: 06bd10cbaed20daa7a23c5a0f37eaa0963c32dcea697927ea64737ddfc348729

Contents?: true

Size: 330 Bytes

Versions: 32

Compression:

Stored size: 330 Bytes

Contents

require 'database_cleaner/neo4j/base'
require 'neo4j-core'

module DatabaseCleaner
  module Neo4j
    class Deletion
      include ::DatabaseCleaner::Neo4j::Base

      def clean
        ::Neo4j::Transaction.run do
          session._query('MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r')
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/neo4j/deletion.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/neo4j/deletion.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.5.3 lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.5.2 lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.5.1 lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.5.0 lib/database_cleaner/neo4j/deletion.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/neo4j/deletion.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/neo4j/deletion.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.4.1 lib/database_cleaner/neo4j/deletion.rb
database_cleaner-1.4.0 lib/database_cleaner/neo4j/deletion.rb