1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +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:
Salvo Polizzi 2024-01-22 13:31:50 +01:00 committed by GitHub
parent 1c3a9b9f96
commit 184d82d848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ from django.db.utils import (
from django.utils.connection import ConnectionProxy
__all__ = [
"close_old_connections",
"connection",
"connections",
"router",

View File

@ -99,7 +99,8 @@ connections.
If a connection is created in a long-running process, outside of Djangos
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
--------