django1/django/db/backends/mysql
Anssi Kääriäinen 1893467784 Fixed #19274 -- Made db connection creation overridable in subclasses
Connection creation was done in db backend ._cursor() call. This
included taking a new connection if needed, initializing the session
state for the new connection and finally creating the connection.

To allow easier modifying of these steps in subclasses (for example to
support connection pools) the _cursor() now calls get_new_connection()
and init_connection_state() if there isn't an existing connection. This
was done for all non-gis core backends. In addition the parameters used
for taking a connection are now created by get_connection_params().

We should also do the same for gis backends and encourage 3rd party
backends to use the same pattern. The pattern is not enforced in code,
and as the backends are private API this will not be required by
documentation either.
2012-11-27 19:47:19 +02:00
..
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00
base.py Fixed #19274 -- Made db connection creation overridable in subclasses 2012-11-27 19:47:19 +02:00
client.py Fixed #15006 -- Removed some stray tabs in python code. Thanks to vanschelven for the report. 2011-01-03 13:19:59 +00:00
compiler.py [py3] Prepared MySQL backend for Python 3 compatibility 2012-08-20 10:46:21 +02:00
creation.py Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks to Erik Romijn. 2011-06-11 13:48:24 +00:00
introspection.py Moved get_primary_key_column implementation to base 2012-09-08 10:24:13 +02:00
validation.py Fixed #18116 -- Raised minimum MySQL version officially suported to 5.0.3. 2012-04-21 03:04:10 +00:00