List the functions
List the script functions using the GetFunctions method.
Examples
Example 1:
The client sends:
{
"jsonrpc": "2.0",
"id": 0,
"method": "GetFunctions",
"handle": -1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"qFunctions": [
{
"qName": "SQL",
"qGroup": "FUNC_GROUP_NONE",
"qSignature": "dual SQL (statement)"
},
{
"qName": "Pi",
"qGroup": "FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE",
"qSignature": "num Pi ()"
},
{
"qName": "Null",
"qGroup": "FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE",
"qSignature": "dual Null ()"
},
{
"qName": "e",
"qGroup": "FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE",
"qSignature": "num e ()"
},
{
"qName": "True",
"qGroup": "FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE",
"qSignature": "num True ()"
},
{
"qName": "False",
"qGroup": "FUNC_GROUP_MATH_CONSTANT_AND_PARAM_FREE",
"qSignature": "num False ()"
},
{
"qName": "DaylightSaving",
"qGroup": "FUNC_GROUP_DATE_AND_TIME",
"qSignature": "num DaylightSaving ()"
},
....
]
}
}
The list of all the functions is displayed.
Example 2:
The client sends:
{
"jsonrpc": "2.0",
"id": 2,
"method": "GetFunctions",
"handle": -1,
"params": [
24
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"qFunctions": [
{
"qName": "Greyness",
"qGroup": "RNK",
"qSignature": "int Greyness ([field_name[, containing_field_name]])"
},
{
"qName": "GreynessTotal",
"qGroup": "RNK",
"qSignature": "int GreynessTotal ([field_name])"
},
{
"qName": "Andness",
"qGroup": "RNK",
"qSignature": "int Andness (expr)"
},
{
"qName": "MatchingFields",
"qGroup": "RNK",
"qSignature": "str MatchingFields ([field_name[, containing_field_name[, ...]]])"
},
{
"qName": "MatchingFieldCombinations",
"qGroup": "RNK",
"qSignature": "int MatchingFieldCombinations ([field_name[, containing_field_name]])"
},
{
"qName": "MatchingFieldRank",
"qGroup": "RNK",
"qSignature": "int MatchingFieldRank ([field_name[, containing_field_name[, ...]]])"
},
{
"qName": "MatchesField",
"qGroup": "RNK",
"qSignature": "bool MatchesField (matching_field_name, ...)"
},
{
"qName": "Rank",
"qGroup": "RNK",
"qSignature": "dual Rank ([TOTAL] expr [, mode=0 [, fmt=0]])"
},
{
"qName": "VRank",
"qGroup": "RNK",
"qSignature": "dual VRank ([TOTAL] expr [, mode=0 [, fmt=0]])"
},
{
"qName": "HRank",
"qGroup": "RNK",
"qSignature": "dual HRank ([TOTAL] expr [, mode=0 [, fmt=0]])"
}
]
}
}
The group FUNC_GROUP_RANKING contains ten functions.