Skip to main content

tenant_database_from

Function tenant_database_from 

Source
pub fn tenant_database_from(
    factory: impl Fn() -> Effect<Arc<dyn SqlClient>, SqlError> + Send + Sync + 'static,
) -> TenantClientFactory
Expand description

A TenantRouter::from_map entry building the tenant’s (unconnected) client with factory each time the tenant opens.