Commit 6d983579 authored by aoh's avatar aoh
Browse files

Remove read_sql.py

parent b0c6ecc6
#!/usr/bin/env python3
from db import DB
with DB() as d:
print("dump db")
for id in d.get_domain_ids():
print("domain id: ", id)
print("domain name: ", d.get_domain_name(id))
for sid in d.get_subdomain_ids(id):
print("subdomain id: ", sid)
print("domain name: ", d.get_subdomain_name(sid))
print("subdomain secret: ", d.get_key(sid))
print("record: ", d.get_record(sid))
print("\nDomains without keys")
for id in d.get_domain_ids():
domain_name = d.get_domain_name(id)
for sid in d.get_subdomain_ids_without_keys(id):
print("domain name: ", d.get_subdomain_name(sid) + "." + domain_name)
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