MultiExecutor constructor

MultiExecutor(
  1. {required QueryExecutor read,
  2. 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);