    def find(cls, db, name):
        """Find a group by name.
        Returns None if not found.
        """
        return db.query(cls).filter(cls.name == name).first()
Find a group by name.
Returns None if not found.
jupyterhub/orm.py