Debian Codegraph @

utils/kamctl/xhttp_pi/pi_framework-01

raw
1 <!-- Declare all mods
2 Each mod must have:
3 - a 'mod_name'
4 - at least one 'cmd'
5 Each cmd must have:
6 - a 'cmd_name'
7 - a 'db_table_id'
8 - a 'cmd_type': c q o
9 Each cmd_type can have:
10 - 'clause_cols' used to specify one or multiple clauses
11 - 'query_cols' used for performing the actual query
12 - 'order_by_cols' used to specify sorting output
13 Each clause_cols will have 'col' elemnts.
14 Each col will have:
15 - a mandatory 'field' identifying the name of the field
16 - an optional 'value' identifying the given value
17 - an optional 'link_cmd' identifying the update cmd with prepared values
18 * only for query_cols for DB1_QUERY commands
19 - a mandatory 'operator' only for 'clause_cols'
20 The [clause|query|order_by]_cols can be:
21 - ov : optional with multiple 'col' with optional 'value'
22 - mv : mandatory with at least one 'col' with optional 'value'
23 - o : optional with at most one 'col' with no 'value'
24 - m : mandatory with at least one 'col' with no 'value'
25 /* col in cmd_type */
26 |command |clause_cols|query_cols|order_by_cols|
27 |DB1_QUERY | ov | m | o |
28 |DB1_INSERT | - | mv | - |
29 |DB1_DELETE | mv | - | - |
30 |DB1_UPDATE | ov | mv | - |
31 |DB1_REPLACE| - | mv | - |
32 /* clause_cols operator */
33 - '<' '&lt;'
34 - '>' '&gt;'
35 - '=' '='
36 - '<=' '&lt;='
37 - '>=' '&gt;='
38 - '!=' '!='
39 -->
40