pub fn delete_data_source(config_json: &str, code: &str) -> Result<String>Expand description
Delete a data source from the configuration
§Arguments
config_json- JSON configuration stringcode- Data source code to delete
§Returns
Modified configuration JSON string
§Errors
NotFoundif data source doesn’t existInvalidInputif attempting to delete system datasource (ID <= 2)JsonParseif config_json is invalidMissingSectionif CFG_DSRC section doesn’t exist