View Source EctoFoundationDB.Tenant.DirectoryTenant (Ecto.Adapters.FoundationDB v0.4.0)

The default backend for EctoFDB multitenancy.

It uses the Directory Layer defined by :erlfdb_directory to partition tenant keyspaces from each other. There is no guarantee provided by FDB at the transaction-level, so care must be taken to always pack keys appropriately. Standard use of Ecto.Repo functions is guaranteed to respect tenant boundaries.

Summary

Types

@type t() :: %EctoFoundationDB.Tenant.DirectoryTenant{
  node: term(),
  prefix: term(),
  ref: term()
}