Skip to main content

TenantBulkActionPoolFn

Type Alias TenantBulkActionPoolFn 

Source
pub type TenantBulkActionPoolFn = Arc<dyn for<'a> Fn(&'a Pool, &'a [SqlValue]) -> BulkActionFuture<'a> + Send + Sync>;
Expand description

Tri-dialect tenant-mode bulk-action handler โ€” runs against the per-request tenant Pool from crate::extractors::Tenant::pool so the handler works on Postgres, MySQL, and SQLite tenants uniformly. Wired via ListView::tenant_action_pool.

Issue #560 โ€” the earlier TenantBulkActionFn accepted only &mut PgConnection, which made bulk actions a PG-only feature in tenancy projects.

Aliased Typeยง

pub struct TenantBulkActionPoolFn { /* private fields */ }