Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
conn.execute ("SELECT * FROM cities;")
rs = conn.fetchwait (5)
print(rs.status, rs.result)
conn.execute ("INSERT INTO weather VALUES ('San Francisco', 46, 50, 0.25, '1994-11-27');")
rs = conn.wait (5)
print(rs.status, rs.result)
conn.execute ("INSERT INTO weather VALUES ('San Francisco', 54, 67, 0.25, '1994-11-27');")
rs = conn.wait (5)
print(rs.status, rs.result)
threading.Thread (target = query).start ()
while threading.activeCount () > 1:
lifetime.loop ()