Views
Every table in a base contains views. The following calls are available to interact with the views of a table.
List views
List views
base.list_views(table_name)
Example
base.list_views('Table1')
Get view by name
base.get_view_by_name(table_name, view_name)
Example
base.get_view_by_name('Table1', 'MyView')
Add view
Add view
base.add_view(table_name, view_name)
Examples
base.add_view('Table1', 'New view')
Rename view
Rename view
base.rename_view(table_name, view_name, new_view_name)
Example
base.rename_view('Table1', 'MyView', 'NewView')
Delete view
Delete view
base.delete_view(table_name, view_name)
Example
base.delete_view('Table1', 'MyView')