Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14054 -- Added documentation for the connection_created event.…

… Thanks to Rob Hudson for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bb79b0177458d7dc6bf1ad3c13928edd9e5f244e 1 parent 6909c22
Russell Keith-Magee authored August 30, 2010

Showing 1 changed file with 36 additions and 0 deletions. Show diff stats Hide diff stats

  1. 36  docs/ref/signals.txt
36  docs/ref/signals.txt
@@ -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.

0 notes on commit bb79b01

Please sign in to comment.
Something went wrong with that request. Please try again.