def main(backup_extractor): conn = sqlite3.connect(CHAT_STORAGE_FILE) c = conn.cursor() c.execute("SELECT COUNT(*) FROM ZWACHATSESSION") total_contacts = next(c)[0] c = conn.cursor() c.execute("SELECT ZCONTACTJID, ZPARTNERNAME, ZSESSIONTYPE FROM ZWACHATSESSION") for contact_id, contact_name, is_group in iterate_with_progress(c, total_contacts, "WhatsApp"): output_contact(conn, backup_extractor, is_group, contact_id, contact_name, "me")
def main(backup_extractor): contact_conn = sqlite3.connect(CONTACTS_FILE) conn = sqlite3.connect(CHAT_STORAGE_FILE) c = conn.cursor() c.execute("SELECT COUNT(*) FROM chat") total_contacts = next(c)[0] c = conn.cursor() c.execute("SELECT ROWID FROM chat") for chat_id in iterate_with_progress(c, total_contacts, "SMS"): output_contact(conn, contact_conn, backup_extractor, chat_id[0], "me")
def main(backup_extractor): conn = sqlite3.connect(CHAT_STORAGE_FILE) c = conn.cursor() c.execute("SELECT COUNT(*) FROM ZWACHATSESSION") total_contacts = next(c)[0] c = conn.cursor() c.execute( "SELECT ZCONTACTJID, ZPARTNERNAME, ZSESSIONTYPE FROM ZWACHATSESSION") for contact_id, contact_name, is_group in iterate_with_progress( c, total_contacts, "WhatsApp"): output_contact(conn, backup_extractor, is_group, contact_id, contact_name, "me")