Sha256: f03ac0c85f2db690b69736edaad062f71014ca900d8aa05f52d83669f0cb3fec
Contents?: true
Size: 642 Bytes
Versions: 17
Compression:
Stored size: 642 Bytes
Contents
module Neo4j module Core class CypherSession def initialize(adaptor) fail ArgumentError, "Invalid adaptor: #{adaptor.inspect}" if !adaptor.is_a?(Adaptors::Base) @adaptor = adaptor @adaptor.connect end %w( query queries start_transaction end_transaction transaction transaction_started? version indexes_for_label uniqueness_constraints_for_label ).each do |method, &_block| define_method(method) do |*args, &block| @adaptor.send(method, *args, &block) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems