def METHOD_NAME(self, entries):
    """Batch store log entries.
    Args:
        entries: an iterable of (entry_number, client_pb2.EntryResponse)
                 tuples
    """
    with self.__mgr.get_connection() as conn:
        cursor = conn.cursor()
        serialized_entries = map(lambda x: (
                x[0], sqlite3.Binary(x[1].SerializeToString())), entries)
        try:
            cursor.executemany("INSERT OR REPLACE INTO entries(id, entry) VALUES "
                               "(?, ?)", serialized_entries)
        except sqlite3.IntegrityError as e:
            raise database.KeyError("Failed to insert entries: an entry "
                                    "with the given sequence number "
                                    "already exists\n%s" % e)