class Neo4j::QueryProxy

Overview

works with a very simplified model of Cypher (MATCH, WHEREs, ORDER BYs, SKIP, LIMIT, RETURN)

Defined in:

neo4j/querying.cr

Instance Method Summary

Instance Method Detail

def add_proxy : QueryProxy | Nil #

for associations


[View source]
def add_proxy=(add_proxy : QueryProxy | Nil) #

for associations


[View source]
def chain(proxy : QueryProxy) #

chaining two proxies together will join the two match clauses and wheres (everything else will use the last value)


[View source]
def clone_for_chain #

[View source]
def create_merge : String #

[View source]
def create_merge=(create_merge : String) #

[View source]
def cypher_params : Hash(String, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil) #

[View source]
def cypher_params=(cypher_params : Hash(String, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil)) #

[View source]
def cypher_query : String | Nil #

expose query building properties to make debugging easier


[View source]
def cypher_query=(cypher_query : String | Nil) #

expose query building properties to make debugging easier


[View source]
def delete_proxy : QueryProxy | Nil #

[View source]
def delete_proxy=(delete_proxy : QueryProxy | Nil) #

[View source]
def executed? : Bool #

[View source]
def expand_where(where : Where) : ExpandedWhere #

this will be overridden in subclass


[View source]
def limit(limit : Int32) #

[View source]
def limit : Int32 #

[View source]
def limit=(limit : Int32) #

[View source]
def match : String #

[View source]
def match=(match : String) #

[View source]
def order(prop : Symbol, dir : SortDirection = Neo4j::Model::SortDirection::ASC) #

this form is mainly for internal use (below), but use it if you need it


[View source]
def order(**params) #

ex: .order(name: :ASC, created_by: :desc)


[View source]
def order_bys : Array({String | Symbol, Neo4j::QueryProxy::SortDirection}) #

[View source]
def order_bys=(order_bys : Array(Tuple(String | Symbol, Neo4j::QueryProxy::SortDirection))) #

[View source]
def reorder(**params) #

[View source]
def reset_query #

[View source]
def ret : String #

[View source]
def ret=(ret : String) #

[View source]
def set(params : ParamsHash) #

[View source]
def set(**params) #

[View source]
def sets : Array({String, Hash(String | Symbol, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil)}) #

[View source]
def sets=(sets : Array(Tuple(String, Hash(String | Symbol, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil)))) #

[View source]
def skip(skip : Int32) #

[View source]
def skip : Int32 #

[View source]
def skip=(skip : Int32) #

[View source]
def unorder #

[View source]
def where(str : String, **params) #

[View source]
def where(**params) #

[View source]
def where_not(str : String, **params) #

[View source]
def where_not(**params) #

[View source]
def wheres : Array({String, Hash(String, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil)}) #

[View source]
def wheres=(wheres : Array(Tuple(String, Hash(String, Array(Neo4j::Value) | Bool | Float64 | Hash(String, Neo4j::Value) | Int16 | Int32 | Int64 | Int8 | Neo4j::Duration | Neo4j::Failure | Neo4j::Ignored | Neo4j::LatLng | Neo4j::Node | Neo4j::Path | Neo4j::Point2D | Neo4j::Point3D | Neo4j::Relationship | Neo4j::Success | Neo4j::UnboundRelationship | String | Time | Nil)))) #

[View source]