• Anssi Kääriäinen's avatar
    Fixed #19274 -- Made db connection creation overridable in subclasses · 18934677
    Anssi Kääriäinen yazdı
    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.
    18934677
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...