Example #1
0
def ListRouters(Where=''):
    out = []
    DbConnection = sqlite3.connect('main.db')
    DbCursor = DbConnection.cursor()
    for row in DbCursor.execute("SELECT * FROM ROUTERS " + Where).fetchall():
        Obj = Router()
        Obj.Id = row[0]
        Obj.Name = row[1]
        out.append(Obj)
    DbConnection.close()
    return out