Rule Editor
Top  Previous  Next


The Rule Editor allows you to create new rules and to edit the existing ones (see How to create a rule and How to edit a rule).

Rule  
 
The main rule parameters are set on the Rule tab.

Name
Set the name of the rule.

For Table or View
The drop-down list allows you to select the table or view from the list of all database tables and views, for which the current rule is created.

Event
Select the event - SELECT, UPDATE, INSERT or DELETE - for which the rule works.

Condition
Set the condition for the rule to perform.

Action
Set the rule action in the edit box.

Description  
 
The Description tab contains the rule description. Button Save Description saves the edited description.

DDL  

On the DDL tab you can view the SQL text for creating the rule with the properties you set. This text can't be edited, but can be copied to the clipboard.

To call the PostgreSQL Reference, click button Help on SQL on the toolbar.

Button Default Size brings the window to the default size (restricted by the main window and the DB Explorer).

The drop-down list of the current database rules on the toolbar allows you to switch the edited rule.

When you are done, click button Compile on the toolbar to start the process of compilation. The Compile Window will appear where you will be able to view and edit the result SQL statement for creating the new rule. Commit the transaction, and if it is successful, the new rule will be created or the rule parameters will be changed.

See also:
Table Editor
Schema Editor
View Editor
Function Editor
Trigger Editor
Index Editor
Sequence Editor
Type Editor
Aggregate Editor
Operator Editor
Language Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes