Preserve columns order when searching (querying) a table

With accelerated tables on, that can instead be:

rows = app_tables[table_name].search()

Without accelerated tables:

my_table = getattr(app_tables, table_name)
rows = my_table.search()

No need for eval.

4 Likes