Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Return exactly one result or raise an exception.

Raises ``sqlalchemy.orm.exc.NoResultFound`` if the query selects
no rows.  Raises ``sqlalchemy.orm.exc.MultipleResultsFound``
if multiple object identities are returned, or if multiple
rows are returned for a query that does not return object
identities.

Note that an entity query, that is, one which selects one or
more mapped classes as opposed to individual column attributes,(more...)

src/c/o/coaster-0.4.1/coaster/sqlalchemy.py   coaster(Download)
        """
        try:
            return self.one()
        except NoResultFound:
            return None

src/c/o/coaster-HEAD/coaster/sqlalchemy.py   coaster(Download)
        """
        try:
            return self.one()
        except NoResultFound:
            return None