Skip to main content

add_expression_function

Function add_expression_function 

Source
pub fn add_expression_function(
    config_json: &str,
    efunc_code: &str,
    params: AddExpressionFunctionParams<'_>,
) -> Result<(String, Value), SzConfigError>
Expand description

Add a new expression function

§Arguments

  • config_json - The configuration JSON string
  • efunc_code - Function code (will be uppercased)
  • params - Function parameters (connect_str required, others optional)

§Returns

Result with modified JSON string and the new function record

§Errors

Returns error if function already exists or JSON is invalid