def select_contigs_in_file(cxn, contig_file, iteration=0):
    """Select all contigs for a contig file."""
    return cxn.execute(
        """SELECT * FROM contigs
            WHERE contig_file = ?
              AND iteration   = ?
         ORDER BY contig_rec;""",
        (contig_file, iteration))