File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -454,3 +454,39 @@ Arguments sent with this signal:
454
454
context
455
455
The :class:`~django.template.Context` with which the template was
456
456
rendered.
457
+
458
+ Database Wrappers
459
+ =================
460
+
461
+ .. module:: django.db.backends
462
+ :synopsis: Core signals sent by the database wrapper.
463
+
464
+ Signals sent by the database wrapper when a database connection is
465
+ initiated.
466
+
467
+ connection_created
468
+ ------------------
469
+
470
+ .. data:: django.db.backends.signals.connection_created
471
+ :module:
472
+
473
+ .. versionadded:: 1.1
474
+
475
+ .. versionchanged:: 1.2
476
+ The connection argument was added
477
+
478
+ Sent when the database wrapper makes the initial connection to the
479
+ database. This is particularly useful if you'd like to send any post
480
+ connection commands to the SQL backend.
481
+
482
+ Arguments sent with this signal:
483
+
484
+ sender
485
+ The database wrapper class -- i.e.
486
+ :class: `django.db.backends.postgresql_psycopg2.DatabaseWrapper` or
487
+ :class: `django.db.backends.mysql.DatabaseWrapper`, etc.
488
+
489
+ connection
490
+ The database connection that was opened. This can be used in a
491
+ multiple-database configuration to differentiate connection signals
492
+ from different databases.
You can’t perform that action at this time.
0 commit comments