I have a piece of code looking like this:
conn=sybpydb.connect(user=args.u, password=args.p,servername=args.s)
cur = conn.cursor()
cur.execute(sql)
print(cur.connections.messages)
The execute takes maybe 5 minutes to run, and then it prints my output. I was wondering if there is any way to print the output line for line while the execute is running instead of waiting until it is done and getting it all as one big batch?