View Source EctoFoundationDB.Indexer behaviour (Ecto.Adapters.FoundationDB v0.1.0)

Implement this behaviour to create a custom index.

Summary

Callbacks

Link to this callback

clear(transaction, t, t, tuple)

View Source
@callback clear(
  :erlfdb.transaction(),
  EctoFoundationDB.Index.t(),
  Ecto.Schema.t(),
  tuple()
) :: :ok
Link to this callback

create(transaction, t, t, tuple, integer)

View Source
@callback create_range(EctoFoundationDB.Index.t()) :: {:erlfdb.key(), :erlfdb.key()}
Link to this callback

set(transaction, t, t, tuple)

View Source
Link to this callback

unpack(t, t, tuple)

View Source (optional)
Link to this callback

update(transaction, t, t, tuple)

View Source (optional)
@callback update(
  :erlfdb.transaction(),
  EctoFoundationDB.Index.t(),
  Ecto.Schema.t(),
  tuple()
) :: :ok

Functions

Link to this function

clear(tx, idxs, partial_idxs, schema, kv)

View Source
Link to this function

create(tx, idx, schema, range, limit)

View Source
Link to this function

range(idx, plan, options)

View Source
Link to this function

set(tx, idxs, partial_idxs, schema, kv)

View Source
Link to this function

unpack(idx, plan, fdb_kv)

View Source
Link to this function

update(tx, idxs, partial_idxs, schema, kv)

View Source