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

Implement this behaviour to create a custom index.

Each Indexer has access to read, write, and clear any and all data in the database. A faulty implementation may lead to data loss or corruption.

Summary

Callbacks

Link to this callback

clear(t, transaction, t, t, tuple)

View Source
Link to this callback

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

View Source
Link to this callback

set(t, transaction, t, t, tuple)

View Source
Link to this callback

unpack(t, t, tuple)

View Source (optional)
Link to this callback

update(t, transaction, t, t, tuple, t)

View Source (optional)

Functions

Link to this function

clear(tenant, tx, metadata, schema, kv)

View Source
Link to this function

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

View Source
Link to this function

create_range(tenant, idx)

View Source
Link to this function

drop_ranges(tenant, idx)

View Source
Link to this function

range(idx, plan, options)

View Source
Link to this function

set(tenant, tx, metadata, schema, kv)

View Source
Link to this function

unpack(idx, plan, fdb_kv)

View Source
Link to this function

update(tenant, tx, metadata, schema, kv, updates)

View Source