Skip to content

Views

Get Views

listViews

base.listViews(table_name)

Example

const views = await base.listViews('Table1')

getViewByName

base.getViewByName(table_name, view_name);

Example

const view = await base.getViewByName('Table1', 'MyView');

Add View

addView

base.addView(table_name, new_view_name);

Example

await base.addView('Table1', 'new_view');

Rename View

renameView

base.renameView(table_name, view_name, new_view_name);

Example

await base.renameView('Table1', 'myView', 'myView-01');

Delete View

deleteView

base.deleteView(table_name, view_name);

Example

await base.deleteView('Table1', 'MyView');