def append_variant_info(main_curr, chunk_db):

    cmd = "attach ? as toMerge"
    main_curr.execute(cmd, (chunk_db, ))

    main_curr.execute("BEGIN TRANSACTION")
    cmd = "INSERT INTO variants SELECT * FROM toMerge.variants"
    main_curr.execute(cmd)

    cmd = \
        "INSERT INTO variant_impacts SELECT * FROM toMerge.variant_impacts"
    main_curr.execute(cmd)
    main_curr.execute("END TRANSACTION")

    cmd = "detach toMerge"
    main_curr.execute(cmd)
Fetches email messages from a POP3 server
dataset/ETHPy150Open arq5x/gemini/gemini/gemini_merge_chunks.py/append_variant_info--crossover with--dataset/ETHPy150Open codekoala/django-articles/articles/management/commands/check_for_articles_from_email.py/POPHandler.fetch