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 @@ -436,3 +436,39 @@ Arguments sent with this signal:
436
436
context
437
437
The :class:`~django.template.Context` with which the template was
438
438
rendered.
439
+
440
+ Database Wrappers
441
+ =================
442
+
443
+ .. module:: django.db.backends
444
+ :synopsis: Core signals sent by the database wrapper.
445
+
446
+ Signals sent by the database wrapper when a database connection is
447
+ initiated.
448
+
449
+ connection_created
450
+ ------------------
451
+
452
+ .. data:: django.db.backends.signals.connection_created
453
+ :module:
454
+
455
+ .. versionadded:: 1.1
456
+
457
+ .. versionchanged:: 1.2
458
+ The connection argument was added
459
+
460
+ Sent when the database wrapper makes the initial connection to the
461
+ database. This is particularly useful if you'd like to send any post
462
+ connection commands to the SQL backend.
463
+
464
+ Arguments sent with this signal:
465
+
466
+ sender
467
+ The database wrapper class -- i.e.
468
+ :class: `django.db.backends.postgresql_psycopg2.DatabaseWrapper` or
469
+ :class: `django.db.backends.mysql.DatabaseWrapper`, etc.
470
+
471
+ connection
472
+ The database connection that was opened. This can be used in a
473
+ multiple-database configuration to differentiate connection signals
474
+ from different databases.
You can’t perform that action at this time.
0 commit comments