()
| 2514 | } |
| 2515 | |
| 2516 | private getConnection(): AbstractSqlConnection { |
| 2517 | const write = !this.platform.getConfig().get('preferReadReplicas'); |
| 2518 | const type = this.connectionType || (write ? 'write' : 'read'); |
| 2519 | return this.driver.getConnection(type); |
| 2520 | } |
| 2521 | |
| 2522 | /** |
| 2523 | * Executes the query and returns an async iterable (async generator) that yields results one by one. |
no test coverage detected