TransactionalPostgreSqlLoader implements Loader
FinalYes
Execute multiple loaders within a single PostgreSQL transaction.
Each batch of rows is processed in its own transaction. If any loader fails, the entire batch is rolled back.
Interfaces
- Loader
Methods
- __construct() : mixed
- load() : void
- withIsolationLevel() : self
Methods
__construct()
public
__construct(Client $client, Loader ...$loaders) : mixed
Parameters
- $client : Client
- $loaders : Loader
load()
public
load(Rows $rows, FlowContext $context) : void
Parameters
- $rows : Rows
- $context : FlowContext
withIsolationLevel()
public
withIsolationLevel(IsolationLevel $level) : self
Parameters
- $level : IsolationLevel