Commit 676fd306 authored by aoh's avatar aoh
Browse files

Add update key example to read_sql.py


Signed-off-by: aoh's avataraoh <aoh@lysator.liu.se>
parent ea64c9eb
......@@ -51,6 +51,14 @@ else:
print("{}, {}, {}, {}, {}, {}, {}, {}".format(
id, name, ttl, clas, rr, destination, domainid, dirtybit, deletebit))
cursor.close()
print("################################################################################")
print("Update key")
print("################################################################################")
query = ("SELECT id, subid, update_key, secret FROM update_key")
cursor.execute(query)
for (id, subid, update_key, secret) in cursor:
print(id, subid, update_key, secret);
cursor.close()
cnx.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment