pub fn parse_configuration_with_url_overrides(
    schema: &str,
    datasource_url_overrides: Vec<(String, String)>,
) -> Result<ValidatedConfiguration, diagnostics::Diagnostics> {
    let mut warnings = Vec::new();
    let ast = ast::parser::parse_schema(schema)?;
    let mut validated_sources = load_sources(&ast, false, datasource_url_overrides)?;
    let mut validated_generators = GeneratorLoader::load_generators_from_ast(&ast)?;

    warnings.append(&mut validated_generators.warnings);
    warnings.append(&mut validated_sources.warnings);

    Ok(ValidatedConfiguration {
        subject: Configuration {
            datasources: validated_sources.subject,
            generators: validated_generators.subject,
        },
        warnings,
    })
}
/// - `datasource_url_overrides`: the tuples consist of datasource name and url
`datasource_url_overrides`: the tuples consist of datasource name and url
` datasource_url_overrides ` : the tuples consist of datasource name and url
pub fn parse_configuration_with_url_overrides(
    schema: &str,
    datasource_url_overrides: Vec<(String, String)>,
) -> Result<ValidatedConfiguration, diagnostics::Diagnostics> {
    let mut warnings = Vec::new();
    let ast = ast::parser::parse_schema(schema)?;
    let mut validated_sources = load_sources(&ast, false, datasource_url_overrides)?;
    let mut validated_generators = GeneratorLoader::load_generators_from_ast(&ast)?;
    warnings.append(&mut validated_generators.warnings);
    warnings.append(&mut validated_sources.warnings);
    Ok(ValidatedConfiguration {
        subject: Configuration {
            datasources: validated_sources.subject,
            generators: validated_generators.subject,
        },
        warnings,
    })
}
pub fn parse_configuration_with_url_overrides ( schema : & str , datasource_url_overrides : Vec < ( String , String ) > , ) -> Result < ValidatedConfiguration , diagnostics :: Diagnostics > { let mut warnings = Vec :: new ( ) ; let ast = ast :: parser :: parse_schema ( schema ) ? ; let mut validated_sources = load_sources ( & ast , false , datasource_url_overrides ) ? ; let mut validated_generators = GeneratorLoader :: load_generators_from_ast ( & ast ) ? ; warnings . append ( & mut validated_generators . warnings ) ; warnings . append ( & mut validated_sources . warnings ) ; Ok ( ValidatedConfiguration { subject : Configuration { datasources : validated_sources . subject , generators : validated_generators . subject , } , warnings , } ) }
`datasource_url_overrides`: the tuples consist of datasource name and url
` datasource_url_overrides ` : the tuples consist of datasource name and url
schema
&str
datasource_url_overrides
Vec<(String, String)>
schema
&str
datasource_url_overrides
Vec<(String, String)>