def _get_deleted_way_ids(table, db, idfield="osm_id"):
    """Returns OSM ids present in osm_id column of table as list."""
    deletions_iter = db.get_layer_iter(table)
    return [_f.GetFieldAsString(_f.GetFieldIndex(idfield)) for _f in deletions_iter]