コード例 #1
0
ファイル: app.py プロジェクト: BeeGeeBee/sampleapp
def getnewstaticid(table):
    qry = session.query(func.max(table.ID))
    return getnextid(session, qry)
コード例 #2
0
ファイル: dbtests.py プロジェクト: BeeGeeBee/sample1
def test_getnextid():
    print 'Testing getnextid.'
    assert getnextid(con, 'components') > 0, 'getnextid failed on table components'