View Source Dagex.Repo behaviour (dagex v3.0.1)
Adds Dagex-specific functionality to your application's Ecto.Repo
module.
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app, adapter: Ecto.Adapters.Postgres
use Dagex.Repo
end
Link to this section Summary
Callbacks
Executes the query generated by Dagex.all_paths/2
and processes the result
into a list of paths where each path is a list of the nodes between (and
including) the ancestor
and the descendant
nodes.
Executes a Dagex repo operation such as Dagex.Operations.CreateEdge
and processes the result.
Link to this section Callbacks
Specs
dagex_paths(all_paths_query :: Ecto.Queryable.t()) :: [[Ecto.Schema.t()]]
Executes the query generated by Dagex.all_paths/2
and processes the result
into a list of paths where each path is a list of the nodes between (and
including) the ancestor
and the descendant
nodes.
Specs
dagex_update( operation :: Dagex.Operations.CreateEdge.t() | Dagex.Operations.RemoveEdge.t() ) :: Dagex.Operations.CreateEdge.result() | Dagex.Operations.RemoveEdge.result()
Executes a Dagex repo operation such as Dagex.Operations.CreateEdge
and processes the result.