View Source FDBC.Tenant (fdbc v0.1.0)

Represents a FoundationDB tenant. Tenants are optional named transaction domains that can be used to provide multiple disjoint key-spaces to client applications. A transaction created in a tenant will be limited to the keys contained within that tenant, and transactions operating on different tenants can use the same key names without interfering with each other.

Summary

Functions

Opens a tenant on the given database.

Types

t()

@type t() :: %FDBC.Tenant{resource: term()}

Functions

open(database, name)

@spec open(FDBC.Database.t(), binary()) :: t()

Opens a tenant on the given database.

All transactions created by this tenant will operate on the tenant’s key-space.