Get list of Tables in app

We’ve added support for getting table names

You can now do

table_names = list(app_tables)

You can also iterate over app_tables


for table_name in app_tables:
    ...

and if you’re using accelarted tables we support subscript notation, and introspection


for table_name in app_tables:
    my_table = app_tables[table_name]
    # if not using accelerated tables
    # getattr(app_tables, table_name)


print(dir(app_tables)) # includes table names
7 Likes