View Source Electric.Tenant.Persistence (electric v0.8.0)

Helper module to persist information about tenants.

Summary

Functions

Deletes a tenant from storage.

Loads all tenants. Returns a map of tenant ID to connection options.

Persists a tenant configuration.

Functions

Link to this function

delete_tenant!(tenant_id, opts)

View Source
@spec delete_tenant!(String.t(), Keyword.t()) :: :ok

Deletes a tenant from storage.

@spec load_tenants!(Keyword.t()) :: map()

Loads all tenants. Returns a map of tenant ID to connection options.

Link to this function

persist_tenant!(tenant_id, conn_opts, opts)

View Source
@spec persist_tenant!(String.t(), Keyword.t(), Keyword.t()) :: :ok

Persists a tenant configuration.