'Get a database by name.
Raises :class:`~pymongo.errors.InvalidName` if an invalid
database name is used.
:Parameters:
- `name`: the name of the database to get'

def __getattr__(self, name):

    if name.startswith('_'):
        raise AttributeError(('MongoClient    has    no    attribute    %r.    To    access    the    %s    database,    use    client[%r].' % (name, name, name)))
    return self.__getitem__(name)
