Module: CypherBuilder
- Defined in:
- lib/cypher_builder.rb,
lib/cypher_builder/and.rb,
lib/cypher_builder/eql.rb,
lib/cypher_builder/opt.rb,
lib/cypher_builder/like.rb,
lib/cypher_builder/node.rb,
lib/cypher_builder/alias.rb,
lib/cypher_builder/field.rb,
lib/cypher_builder/match.rb,
lib/cypher_builder/param.rb,
lib/cypher_builder/where.rb,
lib/cypher_builder/cypher.rb,
lib/cypher_builder/return.rb,
lib/cypher_builder/runner.rb,
lib/cypher_builder/literal.rb,
lib/cypher_builder/version.rb
Defined Under Namespace
Modules: Adapter, Resolver
Classes: Alias, And, Cypher, Eql, Field, Like, Literal, Match, Node, Opt, Param, Payload, Return, Runner, Where
Constant Summary
collapse
- VERSION =
'0.0.2'
Instance Method Summary
collapse
Instance Method Details
#Alias(field, an_alias) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/alias.rb', line 2
def Alias(field, an_alias)
Alias.new(field, an_alias)
end
|
#And(*parts) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/and.rb', line 2
def And(*parts)
And.new(*parts)
end
|
#Cypher(*args) ⇒ Object
2
3
4
5
6
|
# File 'lib/cypher_builder/cypher.rb', line 2
def Cypher(*args)
Class.new(Runner).tap do |the_class|
the_class.cypher = Cypher.new(*args)
end
end
|
#Eql(left, right) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/eql.rb', line 2
def Eql(left, right)
Eql.new(left, right)
end
|
#Field(prefix = nil, name) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/field.rb', line 2
def Field(prefix = nil, name)
Field.new(prefix, name)
end
|
#Like(left, right) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/like.rb', line 2
def Like(left, right)
Like.new(left, right)
end
|
#Literal(*args) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/literal.rb', line 2
def Literal(*args)
Literal.new(*args)
end
|
#Match(*args) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/match.rb', line 2
def Match(*args)
Match.new(*args)
end
|
#Node(prefix, labels: []) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/node.rb', line 2
def Node(prefix, labels: [])
Node.new(prefix, labels: labels)
end
|
#Opt(*parts) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/opt.rb', line 2
def Opt(*parts)
Opt.new(*parts)
end
|
#Param(name) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/param.rb', line 2
def Param(name)
Param.new(name)
end
|
#Return(*parts) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/return.rb', line 2
def Return(*parts)
Return.new(*parts)
end
|
#Where(*parts) ⇒ Object
2
3
4
|
# File 'lib/cypher_builder/where.rb', line 2
def Where(*parts)
Where.new(*parts)
end
|