Sha256: 7865cd97e2183fca29bb89d4298130fdba297635083d54b36d33e513789209a5

Contents?: true

Size: 659 Bytes

Versions: 8

Compression:

Stored size: 659 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[
        query
        queries

        transaction

        version

        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

8 entries across 8 versions & 1 rubygems

Version Path
neo4j-core-9.0.0.alpha.1 lib/neo4j/core/cypher_session.rb
neo4j-core-8.1.4 lib/neo4j/core/cypher_session.rb
neo4j-core-8.1.3 lib/neo4j/core/cypher_session.rb
neo4j-core-8.1.2 lib/neo4j/core/cypher_session.rb
neo4j-core-8.1.1 lib/neo4j/core/cypher_session.rb
neo4j-core-8.1.0 lib/neo4j/core/cypher_session.rb
neo4j-core-8.0.4 lib/neo4j/core/cypher_session.rb
neo4j-core-8.0.3 lib/neo4j/core/cypher_session.rb