def disconnect(alias=DEFAULT_CONNECTION_NAME):
 if (alias in _connections):
  get_connection(alias=alias).close()
  del _connections[alias]
 if (alias in _dbs):
  del _dbs[alias]

def disconnect ( alias = DEFAULT_CONNECTION_NAME ) : if ( alias in _connections ) : get_connection ( alias = alias ) . close ( ) del _connections [ alias ] if ( alias in _dbs ) : del _dbs [ alias ]
disconnect the client .