Sha256: 891bda609a80129d8da4356b8abece3b1521d53b7ad13aacc834b178dded3b37
Contents?: true
Size: 821 Bytes
Versions: 7
Compression:
Stored size: 821 Bytes
Contents
module Neo4j module Core class CypherSession attr_reader :adaptor def initialize(adaptor) fail ArgumentError, "Invalid adaptor: #{adaptor.inspect}" if !adaptor.is_a?(Adaptors::Base) @adaptor = adaptor @adaptor.connect end def transaction_class Neo4j::Core::CypherSession::Transactions::Base end %w[ version ].each do |method, &_block| define_method(method) do |*args, &block| @adaptor.send(method, *args, &block) end end %w[ query queries transaction indexes constraints ].each do |method, &_block| define_method(method) do |*args, &block| @adaptor.send(method, self, *args, &block) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems