MCPcopy
hub / github.com/django/django / get_connection

Method get_connection

tests/backends/oracle/tests.py:101–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 connections = []
100
101 def get_connection():
102 # copy() reuses the existing alias and as such the same pool.
103 conn = new_connection.copy()
104 conn.connect()
105 connections.append(conn)
106 return conn
107
108 try:
109 connection_1 = get_connection() # First connection.

Callers 4

send_mailMethod · 0.45
sendMethod · 0.45
connectionMethod · 0.45

Calls 3

copyMethod · 0.45
connectMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected