예제 #1
0
파일: app.py 프로젝트: BeeGeeBee/sampleapp
def getnewstaticid(table):
    qry = session.query(func.max(table.ID))
    return getnextid(session, qry)
예제 #2
0
def test_getnextid():
    print 'Testing getnextid.'
    assert getnextid(con, 'components') > 0, 'getnextid failed on table components'