Skip to main content

add_data_source

Function add_data_source 

Source
pub fn add_data_source(
    config_json: &str,
    params: AddDataSourceParams<'_>,
) -> Result<String>
Expand description

Add a new data source to the configuration

§Arguments

  • config_json - JSON configuration string
  • params - Data source parameters (code required, others optional)

§Returns

Modified configuration JSON string

§Errors

  • AlreadyExists if data source code already exists
  • JsonParse if config_json is invalid
  • MissingSection if CFG_DSRC section doesn’t exist