(self, *, terminate: bool = False)
| 874 | ) |
| 875 | |
| 876 | def __close(self, *, terminate: bool = False) -> None: |
| 877 | self.finalize_callback.clear() |
| 878 | if self.__pool.dispatch.close: |
| 879 | self.__pool.dispatch.close(self.dbapi_connection, self) |
| 880 | assert self.dbapi_connection is not None |
| 881 | self.__pool._close_connection( |
| 882 | self.dbapi_connection, terminate=terminate |
| 883 | ) |
| 884 | self.dbapi_connection = None |
| 885 | |
| 886 | def __connect(self) -> None: |
| 887 | pool = self.__pool |
no test coverage detected