ExDgraph v0.2.0-beta.3 ExDgraph.Adapter behaviour View Source

Link to this section Summary

Link to this section Types

Link to this type

json_lib() View Source
json_lib() :: module()

Link to this type

port_number() View Source
port_number() :: integer()

Link to this type

request() View Source
request() :: %{}

Link to this type

result() View Source
result() :: %{}

Link to this type

transaction() View Source
transaction() :: %{}

Link to this section Functions

Use ExDgraph.Adapter to set the behaviour.

Link to this function

alter(adapter, conn, request, json_lib, opts) View Source

Link to this function

commit_or_abort(adapter, conn, request, json_lib, opts) View Source

Link to this function

connect(adapter, host, port, opts) View Source

Link to this function

disconnect(adapter, conn) View Source

Link to this function

mutate(adapter, conn, request, json_lib, opts) View Source

Link to this function

query(adapter, conn, request, json_lib, opts) View Source

Link to this section Callbacks

Link to this callback

alter(conn, request, json_lib, opts) View Source
alter(conn(), request(), json_lib(), opts()) ::
  {:ok, result()} | {:error, term()}

Link to this callback

commit_or_abort(conn, transaction, json_lib, opts) View Source
commit_or_abort(conn(), transaction(), json_lib(), opts()) ::
  {:ok, transaction()} | {:error, term()}

Link to this callback

connect(host, port_number, opts) View Source
connect(host(), port_number(), opts()) :: {:ok, conn()} | {:error, term()}

Link to this callback

disconnect(conn) View Source
disconnect(conn()) :: :ok | {:error, term()}

Link to this callback

mutate(conn, request, json_lib, opts) View Source
mutate(conn(), request(), json_lib(), opts()) ::
  {:ok, result()} | {:error, term()}

Link to this callback

ping(conn) View Source
ping(conn()) :: :ok | {:error, term()}

Link to this callback

query(conn, request, json_lib, opts) View Source
query(conn(), request(), json_lib(), opts()) ::
  {:ok, result()} | {:error, term()}