'databases is an optional dictionary of database definitions (structured
like settings.DATABASES).'

def __init__(self, databases=None):

    self._databases = databases
    self._connections = local()
