mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
e331222c55
Description of configuration options for Neo4j and some improvements
17 lines
298 B
Ruby
17 lines
298 B
Ruby
require 'neo4j-core'
|
|
|
|
class Neo4jWidget < Neo4j::Node
|
|
def self.create!(*args)
|
|
create(*args)
|
|
end
|
|
|
|
def self.count
|
|
Neo4j::Session.query.match('n').pluck('COUNT(n)').first
|
|
end
|
|
end
|
|
|
|
class Neo4jWidgetUsingDatabaseOne < Neo4jWidget
|
|
end
|
|
|
|
class Neo4jWidgetUsingDatabaseTwo < Neo4jWidget
|
|
end
|