MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / get_connection

Method get_connection

tortoise/__init__.py:133–143  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

get_connectionFunction · 0.90

Tested by

no test coverage detected