|
msiAddConditionToGenQuery |
( |
msParam_t * |
attribute, |
|
|
msParam_t * |
operator, |
|
|
msParam_t * |
value, |
|
|
msParam_t * |
queryInput, |
|
|
ruleExecInfo_t * |
rei | |
|
) |
| | |
- Description:
- Adds a condition to a genQueryInp_t
- Module:
- core
- Author:
- Antoine de Torcy
- Date:
- 2009-12-07
- Note:
- This microservice adds a condition to an existing genQueryInp_t, from three parameters. One is an iCAT attribute index given without its 'COL_' prefix. The second one is the SQL operator. The third one is the value and may contain wildcards. To be used with msiAddSelectFieldToGenQuery and msiExecGenQuery to build queries from the results of other microservices or actions within an iRODS rule.
- Example Usage:
- See clients/icommands/test/rules3.0/
- Parameters:
-
[in] | attribute | - Required - A STR_MS_T with the iCAT attribute name (see www.irods.org/index.php/icatAttributes). |
[in] | operator | - Required - A STR_MS_T with the operator. |
[in] | value | - Required - A STR_MS_T with the value. |
[in,out] | queryInput | - Required - A GenQueryInp_MS_T. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
- Session Variables Used:
- none
- Session Variables Modified:
- none
- iCAT Attributes Used:
- none
- iCAT Attributes Modified:
- none
- Side Effect:
- none
- Returns:
- integer
- Return values:
-
- Precondition:
- none
- Postcondition:
- none
- See also:
- none
Definition at line 852 of file nre.genQueryMS.c.
|