'Get a collection of this database by name.
Raises InvalidName if an invalid collection name is used.
:Parameters:
- `name`: the name of the collection to get'

def __getattr__(self, name):

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