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

Version Path
neo4j-core-6.1.6 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.5 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.4 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.3 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.2 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.1 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.6 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.5 lib/neo4j/core/cypher_session.rb
neo4j-core-6.1.0 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.4 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.3 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.2 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.1 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.0 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.0.rc.1 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.0.alpha.6 lib/neo4j/core/cypher_session.rb
neo4j-core-6.0.0.alpha.5 lib/neo4j/core/cypher_session.rb