EctoNeo4j v0.6.4 Ecto.Adapters.Neo4j.Behaviour.Queryable View Source

Link to this section Summary

Link to this section Functions

Link to this function

batch_query(cql, params \\ %{}, batch_type \\ :basic, opts \\ []) View Source

Link to this function

batch_query!(cql, params \\ %{}, batch_type \\ :basic, opts \\ []) View Source

Link to this function

checkout(adapter_meta, opts, callback) View Source

Link to this function

execute(map1, map2, arg, sources, preprocess, opts \\ []) View Source

Link to this function

get_conn(pool, bolt_role \\ nil) View Source

Link to this function

query(cql, params \\ %{}, opts \\ []) View Source

Launch the given query with params on database.

Returns all found results, on raise a Bolt.Sips.Exception in case of error.

As database errors should not be silently ignored, a wrong query will crash.

Example

Ecto.Adapters.Neo4j.Repo.query("MATCH (n:Post {uuid: {uuid}}", %{uuid: "unique_id"})
Link to this function

query!(cql, params \\ %{}, opts \\ []) View Source

Same as query but raises in case of error;

Link to this function

run_batch_query(query) View Source
run_batch_query(Ecto.Adapters.Neo4j.Query.t()) ::
  {:error, Bolt.Sips.Error.t()} | {:ok, []}

Link to this function

run_batch_query!(query) View Source
run_batch_query!(Ecto.Adapters.Neo4j.Query.t()) :: {:ok, []}

Link to this function

stream(_, _, _, _, _, opts \\ []) View Source

Not implemented yet.

Link to this function

transaction(repo, opts, fun) View Source