Exandra.Adapter.AdapterBehaviour behaviour (exandra v0.1.11)

Link to this section Summary

Link to this section Callbacks

Link to this callback

child_spec(opts)

@callback child_spec(opts :: any()) :: any()
Link to this callback

execute(conn, statement)

@callback execute(conn :: pid(), statement :: Xandra.statement() | Xandra.Prepared.t()) ::
  {:ok, term()} | {:error, term()}
Link to this callback

execute(cluster, arg2, values, keyword)

@callback execute(
  cluster :: pid(),
  Xandra.statement() | Xandra.Prepared.t(),
  Xandra.values(),
  keyword()
) ::
  {:ok, Xandra.result()} | {:error, Xandra.error()}
Link to this callback

prepare(cluster, stmt, keyword)

@callback prepare(cluster :: pid(), stmt :: Xandra.statement(), keyword()) ::
  {:ok, Xandra.Prepared.t()} | {:error, term()}
Link to this callback

start_link(opts)

@callback start_link(opts :: any()) :: GenServer.on_start()
Link to this callback

stream_pages!(cluster, stmt, values, keyword)

@callback stream_pages!(
  cluster :: pid(),
  stmt :: Xandra.statement() | Xandra.Prepared.t(),
  values :: Xandra.values(),
  keyword :: keyword()
) :: Enumerable.t()