mirror of
https://github.com/django/django.git
synced 2025-01-03 15:06:09 +00:00
Fixed #35130 -- Doc'd django.db.close_old_connections().
This also adds close_db_connections() to the django.db.__all__.
This commit is contained in:
parent
1c3a9b9f96
commit
184d82d848
@ -17,6 +17,7 @@ from django.db.utils import (
|
|||||||
from django.utils.connection import ConnectionProxy
|
from django.utils.connection import ConnectionProxy
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
"close_old_connections",
|
||||||
"connection",
|
"connection",
|
||||||
"connections",
|
"connections",
|
||||||
"router",
|
"router",
|
||||||
|
@ -99,7 +99,8 @@ connections.
|
|||||||
|
|
||||||
If a connection is created in a long-running process, outside of Django’s
|
If a connection is created in a long-running process, outside of Django’s
|
||||||
request-response cycle, the connection will remain open until explicitly
|
request-response cycle, the connection will remain open until explicitly
|
||||||
closed, or timeout occurs.
|
closed, or timeout occurs. You can use ``django.db.close_old_connections()`` to
|
||||||
|
close all old or unusable connections.
|
||||||
|
|
||||||
Encoding
|
Encoding
|
||||||
--------
|
--------
|
||||||
|
Loading…
Reference in New Issue
Block a user