class Neo4j::QueryProxy
- Neo4j::QueryProxy
- Reference
- Object
Overview
works with a very simplified model of Cypher (MATCH, WHEREs, ORDER BYs, SKIP, LIMIT, RETURN)
Defined in:
neo4j/querying.crInstance Method Summary
-
#add_proxy : QueryProxy | Nil
for associations
-
#add_proxy=(add_proxy : QueryProxy | Nil)
for associations
-
#chain(proxy : QueryProxy)
chaining two proxies together will join the two match clauses and wheres (everything else will use the last value)
- #clone_for_chain
- #create_merge : String
- #create_merge=(create_merge : String)
- #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)
- #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))
-
#cypher_query : String | Nil
expose query building properties to make debugging easier
-
#cypher_query=(cypher_query : String | Nil)
expose query building properties to make debugging easier
- #delete_proxy : QueryProxy | Nil
- #delete_proxy=(delete_proxy : QueryProxy | Nil)
- #executed? : Bool
-
#expand_where(where : Where) : ExpandedWhere
this will be overridden in subclass
- #limit(limit : Int32)
- #limit : Int32
- #limit=(limit : Int32)
- #match : String
- #match=(match : String)
-
#order(prop : Symbol, dir : SortDirection = Neo4j::Model::SortDirection::ASC)
this form is mainly for internal use (below), but use it if you need it
-
#order(**params)
ex: .order(name: :ASC, created_by: :desc)
- #order_bys : Array({String | Symbol, Neo4j::QueryProxy::SortDirection})
- #order_bys=(order_bys : Array(Tuple(String | Symbol, Neo4j::QueryProxy::SortDirection)))
- #reorder(**params)
- #reset_query
- #ret : String
- #ret=(ret : String)
- #set(params : ParamsHash)
- #set(**params)
- #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)})
- #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))))
- #skip(skip : Int32)
- #skip : Int32
- #skip=(skip : Int32)
- #unorder
- #where(str : String, **params)
- #where(**params)
- #where_not(str : String, **params)
- #where_not(**params)
- #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)})
- #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))))
Instance Method Detail
def chain(proxy : QueryProxy)
#
chaining two proxies together will join the two match clauses and wheres (everything else will use the last value)
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)
#
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))
#
def cypher_query=(cypher_query : String | Nil)
#
expose query building properties to make debugging easier
this form is mainly for internal use (below), but use it if you need it
def order_bys=(order_bys : Array(Tuple(String | Symbol, Neo4j::QueryProxy::SortDirection)))
#
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)})
#
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))))
#
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)})
#
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))))
#