コード例 #1
0
def jinja_sql(self):
    hello = DBSession.query(Hello).all()
    return dict(hello=hello)
コード例 #2
0
def jinja_sql(self):
    hello = DBSession.query(Hello).all()
    return dict(hello=hello)
コード例 #3
0
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))
コード例 #4
0
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))