'Like :meth:`~.Session.execute` but return a scalar result.'

def scalar(self, clause, params=None, mapper=None, bind=None, **kw):

    return self.execute(clause, params=params, mapper=mapper, bind=bind, **kw).scalar()
