def jinja_sql(self): hello = DBSession.query(Hello).all() return dict(hello=hello)
def raw_sql(self): output = [] hello = DBSession.query(Hello).all() for row in hello: output.append('%s - %s' % (row.id, row.data)) return Response('\n'.join(output))