The new fetch_only argument to searches is wonderful! Can we also get its inverse?
Most of the time I use fetch_only, what I really want is to EXCLUDE a column, vs selecting the columns I want.
I can do something like:
dont_fetch = ['some_column']
columns = [c['name'] for c in my_table.list_columns() if c['name'] not in dont_fetch]
my_results = my_tables.search(q.fetch_only(*columns))
The ‘clunky’ part of this solution is you have to pass in the table object or name of the table to the function, but other than that, its the same as the solution you already use.