fn render_datamodel_and_config_to(
    stream: &mut dyn std::fmt::Write,
    datamodel: &dml::Datamodel,
    config: &configuration::Configuration,
) {
    let mut lowered = LowerDmlToAst::new(config.datasources.first()).lower(datamodel);

    DatasourceSerializer::add_sources_to_ast(config.datasources.as_slice(), &mut lowered);
    GeneratorSerializer::add_generators_to_ast(&config.generators, &mut lowered);

    render_schema_ast_to(stream, &lowered, 2);
}
/// Renders a datamodel, generators and sources to a stream as a string.
Renders a datamodel, generators and sources to a stream as a string.
Renders a datamodel generators and sources to a stream as a string .
fn render_datamodel_and_config_to(
    stream: &mut dyn std::fmt::Write,
    datamodel: &dml::Datamodel,
    config: &configuration::Configuration,
) {
    let mut lowered = LowerDmlToAst::new(config.datasources.first()).lower(datamodel);
    DatasourceSerializer::add_sources_to_ast(config.datasources.as_slice(), &mut lowered);
    GeneratorSerializer::add_generators_to_ast(&config.generators, &mut lowered);
    render_schema_ast_to(stream, &lowered, 2);
}
fn render_datamodel_and_config_to ( stream : & mut dyn std :: fmt :: Write , datamodel : & dml :: Datamodel , config : & configuration :: Configuration , ) { let mut lowered = LowerDmlToAst :: new ( config . datasources . first ( ) ) . lower ( datamodel ) ; DatasourceSerializer :: add_sources_to_ast ( config . datasources . as_slice ( ) , & mut lowered ) ; GeneratorSerializer :: add_generators_to_ast ( & config . generators , & mut lowered ) ; render_schema_ast_to ( stream , & lowered , 2 ) ; }
Renders a datamodel, generators and sources to a stream as a string.
Renders a datamodel generators and sources to a stream as a string .
stream
&mut dyn std::fmt::Write
datamodel
&dml::Datamodel
config
&configuration::Configuration