def tile_footprint_exists(self, tile_dict):

        sql = ("SELECT 1 FROM tile_footprint\n" +
               "WHERE x_index = %(x_index)s AND\n" +
               "      y_index = %(y_index)s AND\n" +
               "      tile_type_id = %(tile_type_id)s;")
        result = self.execute_sql_single(sql, tile_dict)
        footprint_exists = True if result else False
        return footprint_exists
Check the tile footprint table for an existing entry.
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/ingest_db_wrapper.py/IngestDBWrapper.tile_footprint_exists