Create a new materialized view - postgres docs
Arguments:
viewName[string] - name of the new materialized viewoptions[object] - options:ifNotExists[boolean] - default falsecolumns[string or array] - use if you want to name columns differently then inferred from definitiontablespace[string]storageParameters[object] - key value pairs of Storage Parametersdata[boolean] - default undefined
definition[string] - SQL of SELECT statement
Reverse Operation: dropMaterializedView
Drop a materialized view - postgres docs
Arguments:
viewName[string] - name of the view to deleteoptions[object] - options:ifExists[boolean] - drops view only if it existscascade[boolean] - drops also dependent objects
Alter a materialized view - postgres docs
Arguments:
viewName[string] - name of the view to alteroptions[object] - options:cluster[string] - index name for clusteringextension[string] - name of extension view is dependent onstorageParameters[object] - key value pairs of Storage Parameters
Rename a materialized view - postgres docs
Arguments:
viewName[string] - old name of the viewnewViewName[string] - new name of the view
Rename a materialized view column - postgres docs
Arguments:
viewName[string] - name of the view to altercolumnName[string] - current column namenewColumnName[string] - new column name
Refreshes a materialized view - postgres docs
Arguments:
viewName[string] - old name of the viewoptions[object] - options:concurrently[boolean] - default falsedata[boolean] - default undefined