Search in sources :

Example 1 with PostgreViewBase

use of org.jkiss.dbeaver.ext.postgresql.model.PostgreViewBase in project dbeaver by serge-rider.

the class PostgreViewManager method addObjectDeleteActions.

@Override
protected void addObjectDeleteActions(List<DBEPersistAction> actions, ObjectDeleteCommand command) {
    PostgreViewBase view = (PostgreViewBase) command.getObject();
    actions.add(//$NON-NLS-2$
    new SQLDatabasePersistAction("Drop view", "DROP " + view.getViewType() + " " + view.getFullyQualifiedName(DBPEvaluationContext.DDL)));
}
Also used : PostgreViewBase(org.jkiss.dbeaver.ext.postgresql.model.PostgreViewBase) SQLDatabasePersistAction(org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction)

Aggregations

PostgreViewBase (org.jkiss.dbeaver.ext.postgresql.model.PostgreViewBase)1 SQLDatabasePersistAction (org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction)1