Skip to main content

get_data_source

Function get_data_source 

Source
pub fn get_data_source(config_json: &str, code: &str) -> Result<Value>
Expand description

Get a specific data source by code

§Arguments

  • config_json - JSON configuration string
  • code - Data source code to retrieve

§Returns

JSON Value representing the data source

§Errors

  • NotFound if data source doesn’t exist
  • JsonParse if config_json is invalid
  • MissingSection if CFG_DSRC section doesn’t exist