Definition
/**
* Execute multiple loaders within a database transaction.
* Each batch of rows will be processed in its own transaction.
* If any loader fails, the entire batch will be rolled back.
*
* @param array<string, mixed>|Connection $connection
* @param Loader ...$loaders - Loaders to execute within the transaction
*
* @throws InvalidArgumentException
*/
to_dbal_transaction(Connection|array $connection, Loader $loaders) : TransactionalDbalLoader