Returns the state of one or several objects (Procedures, Functions or Triggers) of the database.
1 connection.schema.code.status
<connection.schema.code.status
debug='debug'
type='type'
dict='dict'
pattern='pattern'
soft='soft'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Adebug | boolean | ||||
Atype | string | Type of object (trig|proc|func). | |||
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. | |||
Asoft | boolean | If it is true, the physical existence is not verified. |
Returns | |
---|---|
Type | Description |
Vtable | Returns a vtable with the result. Returns the result for each processed object. |
Example
Copy
<xsql-script name='schema_code_status_sample1'> <body> <println> <connection.schema.code.status type='trig' dict='%' pattern='capuntes_%' /> </println> </body> </xsql-script>
The xsql-script prints the result:
Copy
+-----+--------+------+------+----+----+----+----+-----+------+-----------+------------+ |seqno|database|server|schema|dict|type|code|name|group|status|object_time|compile_time| +-----+--------+------+------+----+----+----+----+-----+------+-----------+------------+