api/repositories/). The DBSession wrapper provides the methods for executing queries, and SQLAlchemy’s select() API builds the statements.
DBSession methods
All methods roll back the session automatically on failure.
Repository base class
All repositories extendRepository, which provides add(), add_all(), and delete():