Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed #14054 -- Added documentation for the connection_create…

…d event. Thanks to Rob Hudson for the report and patch.

Backport of r13673 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5295d678b940c7f1bc2d1122d4c9aeb2c0bcd968 1 parent 62355d8
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
@@ -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.

0 notes on commit 5295d67

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