Fdb.Tenants
Namespace: FoundationDB.Client · class
Helper methods for managing Tenants in a FoundationDB cluster
Methods
CreateTenant
static void CreateTenant(IFdbTransaction tr, FdbTenantName name)
Creates a new tenant in the cluster
DeleteTenant
static void DeleteTenant(IFdbTransaction tr, FdbTenantName name)
Deletes an existing tenant in the cluster
GetTenantMetadata
static Task<FdbTenantMetadata> GetTenantMetadata(IFdbReadOnlyTransaction tr, FdbTenantName name)
Fetches the metadata for a tenant in the cluster
GetTenantMode
static Task<FdbTenantMode> GetTenantMode(IFdbReadOnlyTransaction tr)
Queries the current FdbTenantMode of the cluster
HasTenant
static Task<bool> HasTenant(IFdbReadOnlyTransaction tr, FdbTenantName name)
Tests if a tenant already exists in the cluster
QueryTenants
static IAsyncQuery<FdbTenantMetadata> QueryTenants(IFdbReadOnlyTransaction tr, Slice prefix = null, Func<Slice, bool> filter = null)