Compile one or several objects (Procedures, Functions or Triggers) inside the database.
1 connection.schema.code.compile
<connection.schema.code.compile
debug='debug'
type='type'
dict='dict'
pattern='pattern'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Adebug | boolean | ||||
Atype | string | Type of object (xudf|xudp|proc|trig|all). If it is 'all' it will be processed in this order. | |||
Adict | string | Dictionary where the object is found. This attribute is optional, if the object is reported it is taken from this dictionary. If it is not reported, the system search it in all the dictionarys of the application and it will execute the one that is defined in the wic_dbms_dicts before. | |||
Apattern | string | Objects to create, a object code or a style pattern capuntes%, all that begins by capuntes. This attribute is optional, if the system is not informed, it will take all the objects of this type. |
Returns | |
---|---|
Type | Description |
Vtable | Returns a vtable with the result. Result the result for each preocessed object. |
Example
Compile the triggers that meet with the pattern capuntes_%
Copy
<xsql-script name='compile_trigger'> <body> <println> <connection.schema.code.compile type='trig' dict='wic_misc' pattern='capuntes_%' /> </println> </body> </xsql-script>
The xsql-script prints the result:
Copy
+--------------+------+--------+-------+-------------------------------+-----+------+--------------------------------- + |dbms |schema|dict |type |code |group|error |message | +--------------+------+--------+-------+-------------------------------+-----+------+----------------------------------+ |demo_formacion| |wic_misc|trigger|capuntes_del | |false |TRIGGER capuntes_del created. | |demo_formacion| |wic_misc|trigger|capuntes_ins | |false |TRIGGER capuntes_ins created. | +--------------+------+--------+-------+-------------------------------+-----+------+----------------------------------+