MultiExecutor constructor
MultiExecutor({
- required QueryExecutor read,
- required QueryExecutor write,
Creates a query executor that will delegate work to different executors.
Updating statements, or statements that run in a transaction, will be run
with write
. Select statements outside of a transaction are executed on
read
.
Implementation
factory MultiExecutor({
required QueryExecutor read,
required QueryExecutor write,
}) =>
_MultiExecutorImpl(reads: [read], write: write);