Expand description
Row-level multi-tenancy: task-local tenant ID + Tower middleware.
Functions§
- current_
tenant_ id - Returns the current request’s tenant ID from the task-local scope, if any.
Always returns
Nonewhen thetenantfeature is disabled.
Row-level multi-tenancy: task-local tenant ID + Tower middleware.
None when the tenant feature is disabled.