EctoNeo4j v0.6.4 Ecto.Adapters.Neo4j.QueryMapper View Source
Mapper that converts an Ecto.Query
struct into a Ecto.Adapters.Neo4j.Query
one.
Link to this section Summary
Functions
Map Ecto.Query to Ecto.Adapters.Neo4j.Query
Map EctoQuery
distinct clause to a Neo4j.Query
compliant one.
Converts EctoQuery.sources
into an Ecto.Adapters.Neo4j.Query
compliant list of NodeExpr
which would be used in MATCH
Map join
into Neo4j.Query
compliant relationship query.
Map EctoQuery.limit
to Neo4j.Query
compliant ones.
Map EctoQuery.order_bys
to Neo4j.Query
compliant value to be used in SKIP
.
Map EctoQuery.order_bys
to Neo4j.Query
compliant ones.
Produce a Neo4j.Query
to retrieve relationship (mapping of the ecto preload operation)
Map a non-preload Ecto.Query
to Ecto.Adapters.Neo4j.Query
Map Ecto.Query.select
to Neo4j.Query
list of return (nodes, relationships o fields)
which will be used in RETURN
Map EctoQuery.updates
to Neo4j.Query
list of Sets which will be used in SET
s.§
Map EctoQuery.wheres
to Neo4j.Condition
which will used to build WHERE
clauses.
Link to this section Functions
map(operation, query, unbound_params, opts)
View Source
map(atom(), Ecto.Query.t(), list(), Keyword.t()) ::
Ecto.Adapters.Neo4j.Query.t()
map(atom(), Ecto.Query.t(), list(), Keyword.t()) :: Ecto.Adapters.Neo4j.Query.t()
Map Ecto.Query to Ecto.Adapters.Neo4j.Query
map_distinct(arg1) View Source
Map EctoQuery
distinct clause to a Neo4j.Query
compliant one.
map_from(sources)
View Source
map_from(tuple()) :: [Ecto.Adapters.Neo4j.Query.NodeExpr.t()]
map_from(tuple()) :: [Ecto.Adapters.Neo4j.Query.NodeExpr.t()]
Converts EctoQuery.sources
into an Ecto.Adapters.Neo4j.Query
compliant list of NodeExpr
which would be used in MATCH
map_join(join_expr, unbound_params)
View Source
map_join(map(), map()) :: Ecto.Adapters.Neo4j.Condition.Relationship.clauses()
map_join(map(), map()) :: Ecto.Adapters.Neo4j.Condition.Relationship.clauses()
Map join
into Neo4j.Query
compliant relationship query.
on
will be used to define filters.
Note that every realtionship filters have to be specified as on
clauses
map_limit(arg1) View Source
Map EctoQuery.limit
to Neo4j.Query
compliant ones.
map_offset(arg1) View Source
Map EctoQuery.order_bys
to Neo4j.Query
compliant value to be used in SKIP
.
map_order_by(list)
View Source
map_order_by([map()]) :: [Ecto.Adapters.Neo4j.Query.OrderExpr.t()]
map_order_by([map()]) :: [Ecto.Adapters.Neo4j.Query.OrderExpr.t()]
Map EctoQuery.order_bys
to Neo4j.Query
compliant ones.
map_preload(operation, query, unbound_params, opts)
View Source
map_preload(atom(), Ecto.Query.t(), list(), Keyword.t()) ::
Ecto.Adapters.Neo4j.Query.t()
map_preload(atom(), Ecto.Query.t(), list(), Keyword.t()) :: Ecto.Adapters.Neo4j.Query.t()
Produce a Neo4j.Query
to retrieve relationship (mapping of the ecto preload operation)
map_query(operation, query, unbound_params, opts)
View Source
map_query(atom(), Ecto.Query.t(), [], Keyword.t()) ::
Ecto.Adapters.Neo4j.Query.t()
map_query(atom(), Ecto.Query.t(), [], Keyword.t()) :: Ecto.Adapters.Neo4j.Query.t()
Map a non-preload Ecto.Query
to Ecto.Adapters.Neo4j.Query
map_select(select)
View Source
map_select(nil | map()) :: [
Ecto.Adapters.Neo4j.Query.NodeExpr.t()
| Ecto.Adapters.Neo4j.Query.RelationshipExpr.t()
| Ecto.Adapters.Neo4j.Query.AggregateExpr.t()
]
map_select(nil | map()) :: [ Ecto.Adapters.Neo4j.Query.NodeExpr.t() | Ecto.Adapters.Neo4j.Query.RelationshipExpr.t() | Ecto.Adapters.Neo4j.Query.AggregateExpr.t() ]
Map Ecto.Query.select
to Neo4j.Query
list of return (nodes, relationships o fields)
which will be used in RETURN
map_update(query_expr, unbound_params, clauses)
View Source
map_update(map(), map(), %{
params: map(),
set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()]
}) :: %{params: map(), set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()]}
map_update(map(), map(), %{ params: map(), set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()] }) :: %{params: map(), set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()]}
Map EctoQuery.updates
to Neo4j.Query
list of Sets which will be used in SET
s.§
map_where(expression, unbound_params, clauses)
View Source
map_where([map()] | map(), map(), %{
params: map(),
where: Ecto.Adapters.Neo4j.Condition.t()
}) :: %{params: map(), where: Ecto.Adapters.Neo4j.Condition.t()}
map_where([map()] | map(), map(), %{ params: map(), where: Ecto.Adapters.Neo4j.Condition.t() }) :: %{params: map(), where: Ecto.Adapters.Neo4j.Condition.t()}
Map EctoQuery.wheres
to Neo4j.Condition
which will used to build WHERE
clauses.