Returns the connection by name. :raises ConfigurationError: If connection name does not exist. .. warning:: This is deprecated and will be removed in a future release. Please use :meth:`get_connection ` instead.
(cls, connection_name: str)
| 131 | |
| 132 | @classmethod |
| 133 | def get_connection(cls, connection_name: str) -> BaseDBAsyncClient: |
| 134 | """ |
| 135 | Returns the connection by name. |
| 136 | |
| 137 | :raises ConfigurationError: If connection name does not exist. |
| 138 | |
| 139 | .. warning:: |
| 140 | This is deprecated and will be removed in a future release. Please use |
| 141 | :meth:`get_connection<tortoise.connection.get_connection>` instead. |
| 142 | """ |
| 143 | return get_connection(connection_name) |
| 144 | |
| 145 | @classmethod |
| 146 | def describe_model( |
nothing calls this directly
no test coverage detected