django1/django/db/backends/sqlite3
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 #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
creation.py Fixed #19162 -- Wrong indentation. 2012-10-22 19:23:19 +02:00
introspection.py Made get_table_description also return the size of char fields on SQLite 2012-08-30 19:36:05 +02:00