Django
1.0
▾ django
▸ __main__
▸ apps
▸ bin
▸ conf
▸ contrib
▸ core
▾ db
▸ backends
▸ migrations
▸ models
▸ transaction
▾ utils
class
ConnectionDoesNotExist
class
ConnectionHandler
class
ConnectionRouter
class
DataError
class
DatabaseError
class
DatabaseErrorWrapper
class
Error
class
IntegrityError
class
InterfaceError
class
InternalError
class
NotSupportedError
class
OperationalError
class
ProgrammingError
class
DefaultConnectionProxy
▸ dispatch
▸ forms
▸ http
▸ middleware
▸ shortcuts
▸ template
▸ templatetags
▸ test
▸ urls
▸ utils
▸ views
Class ConnectionHandler
django
.
db
.
utils
.
ConnectionHandler
Declaration
class
ConnectionHandler
source
link
Methods
▷
def
__delitem__
(
self, key
)
source
link
▷
def
__getitem__
(
self, alias
)
source
link
▷
def
__init__
(
self, databases=None
)
databases is an optional dictionary of database definitions (structured like settings.DATABASES).
source
link
▷
def
__iter__
(
self
)
source
link
▷
def
__setitem__
(
self, key, value
)
source
link
▷
def
all
(
self
)
source
link
▷
def
close_all
(
self
)
source
link
▷
def
databases
(
self
)
@cached_property
@cached_property
def
databases(
self
)
source
link
▷
def
ensure_defaults
(
self, alias
)
Put the defaults into the settings dictionary for a given connection where no settings is provided.
source
link
▷
def
prepare_test_settings
(
self, alias
)
Make sure the test settings are available in the 'TEST' sub-dictionary.
source
link
Reexports
Imported in
django.db
.
Generated by
nedoc
v0.9 at 2020-12-29 14:04