class Neo4j::Core::CypherSession::Adaptors::Base::QueryBuilder
Attributes
queries[R]
Public Class Methods
new()
click to toggle source
# File lib/neo4j/core/cypher_session/adaptors.rb 78 def initialize 79 @queries = [] 80 end
Public Instance Methods
append(*args)
click to toggle source
# File lib/neo4j/core/cypher_session/adaptors.rb 82 def append(*args) 83 query = case args.map(&:class) 84 when [String], [String, Hash] 85 Query.new(args[0], args[1] || {}) 86 when [::Neo4j::Core::Query] 87 args[0] 88 else 89 fail ArgumentError, "Could not determine query from arguments: #{args.inspect}" 90 end 91 92 @queries << query 93 end
query()
click to toggle source
# File lib/neo4j/core/cypher_session/adaptors.rb 95 def query 96 # `nil` sessions are just a workaround until 97 # we phase out `Query` objects containing sessions 98 Neo4j::Core::Query.new(session: nil) 99 end