Class: Neo4j::Core::CypherSession

Inherits:
Object
  • Object
show all
Defined in:
lib/neo4j/core/cypher_session.rb,
lib/neo4j/core/cypher_session/result.rb,
lib/neo4j/core/cypher_session/adaptors.rb,
lib/neo4j/core/cypher_session/responses.rb,
lib/neo4j/core/cypher_session/transactions.rb,
lib/neo4j/core/cypher_session/adaptors/bolt.rb,
lib/neo4j/core/cypher_session/adaptors/http.rb,
lib/neo4j/core/cypher_session/responses/bolt.rb,
lib/neo4j/core/cypher_session/responses/http.rb,
lib/neo4j/core/cypher_session/adaptors/driver.rb,
lib/neo4j/core/cypher_session/adaptors/schema.rb,
lib/neo4j/core/cypher_session/adaptors/has_uri.rb,
lib/neo4j/core/cypher_session/responses/driver.rb,
lib/neo4j/core/cypher_session/adaptors/embedded.rb,
lib/neo4j/core/cypher_session/transactions/bolt.rb,
lib/neo4j/core/cypher_session/transactions/http.rb,
lib/neo4j/core/cypher_session/responses/embedded.rb,
lib/neo4j/core/cypher_session/transactions/driver.rb,
lib/neo4j/core/cypher_session/transactions/embedded.rb

Defined Under Namespace

Modules: Adaptors, Responses, SchemaErrors, Transactions Classes: ConnectionFailedError, CypherError, Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adaptor) ⇒ CypherSession

Returns a new instance of CypherSession



9
10
11
12
13
14
15
# File 'lib/neo4j/core/cypher_session.rb', line 9

def initialize(adaptor)
  fail ArgumentError, "Invalid adaptor: #{adaptor.inspect}" if !adaptor.is_a?(Adaptors::Base)

  @adaptor = adaptor

  @adaptor.connect
end

Instance Attribute Details

#adaptorObject (readonly)

Returns the value of attribute adaptor



6
7
8
# File 'lib/neo4j/core/cypher_session.rb', line 6

def adaptor
  @adaptor
end

Instance Method Details

#transaction_classObject



17
18
19
# File 'lib/neo4j/core/cypher_session.rb', line 17

def transaction_class
  Neo4j::Core::CypherSession::Transactions::Base
end