Generator to send the commands to perform periodic maintenance Deallocate unneeded command in the server, or flush the prepared statements server state entirely if necessary.
(self, conn: BaseConnection[Any])
| 182 | return False |
| 183 | |
| 184 | def maintain_gen(self, conn: BaseConnection[Any]) -> PQGen[None]: |
| 185 | """ |
| 186 | Generator to send the commands to perform periodic maintenance |
| 187 | |
| 188 | Deallocate unneeded command in the server, or flush the prepared |
| 189 | statements server state entirely if necessary. |
| 190 | """ |
| 191 | while self._to_flush: |
| 192 | name = self._to_flush.popleft() |
| 193 | yield from conn._deallocate(name) |
no test coverage detected