Generate batches of operations, batched by type of operation, in arbitrary order.
(self)
| 229 | yield run |
| 230 | |
| 231 | def gen_unordered(self) -> Iterator[_Run]: |
| 232 | """Generate batches of operations, batched by type of |
| 233 | operation, in arbitrary order. |
| 234 | """ |
| 235 | operations = [_Run(_INSERT), _Run(_UPDATE), _Run(_DELETE)] |
| 236 | for idx, (op_type, operation) in enumerate(self.ops): |
| 237 | operations[op_type].add(idx, operation) |
| 238 | |
| 239 | for run in operations: |
| 240 | if run.ops: |
| 241 | yield run |
| 242 | |
| 243 | @_handle_reauth |
| 244 | def write_command( |