Entities and Objects: Description of Objects: Procedure/Function

For technical specifications regarding the procedures can be found in the official documentation of PostgreSQL.

The window shown in the figures below, lets you change the properties of an object procedure (or function).

As with all objects in a project, the area has a window where you must enter the name of the object, unique within the same project. The window is made up of four folders, grouping in the different logical characteristics of the object.

The "Topics" you can enter a list of parameters of the procedure, separated by a comma; the procedure checks the validity of strings enter, which must match in the types accepted by PostgreSQL, including types defined ( as described in the following paragraphs). On the right of this field is also a button, which opens a short list containing all types; selection with the double click of the mouse, move the type selected topics in the field.

The combo "Returns" contains a list of all the data types are allowed on all versions of PostgreSQL, at present there is no distinction between the various versions, and monitoring should be carried out by the user.

The last three combos allow you to define the modus operandi of the procedure.

In Folder "Definition" can be inserted in the code sql desired language, according to the approach selected in the previous folder. By default, and only for new procedures, you enter a text already preset, which can serve as the basis for writing function is to be borne in mind that the structure of the text of default Basa language pgsql, it is possible that is not usable if you select a different approach.

Note: Strings included single quotes (SQL syntax), in the definition, are automatically and properly converted for the creation of proper procedure in the database.

The third tab "Links" presents a tree-structured list, which displays any reports of the procedure with the other items contained in the draft. The list is for informational purposes only, and has no function.

The last folder, exist in almost all the windows on object-oriented database, appear SQL commands on the building and the construction of instruction takes place in real time, and depends on the settings in the property contained in the current window.