fn create_models(schema: &str) -> (String, Vec<String>) {
    let contents = schema.to_string();

    let mut output = String::new();

    let parse_output = parse(
        contents.clone(),
        "model",
        Some("Queryable, Serialize".to_string()),
        false,
        &mut HashMap::new(),
        false,
    );
    output = print_normal_dependencies(&parse_output, output);
    output += "\n";
    output += &parse_output.str_model;

    output += "\n";

    let parse_output = parse(
        contents,
        "model",
        Some("Insertable, Deserialize".to_string()),
        true,
        &mut HashMap::new(),
        true,
    );
    output += &parse_output.str_model;

    (output, parse_output.model_list)
}
/// Create models from the Diesel schema using `diesel_cli_ext`
Create models from the Diesel schema using `diesel_cli_ext`
Create models from the Diesel schema using ` diesel_cli_ext `
fn create_models(schema: &str) -> (String, Vec<String>) {
    let contents = schema.to_string();
    let mut output = String::new();
    let parse_output = parse(
        contents.clone(),
        "model",
        Some("Queryable, Serialize".to_string()),
        false,
        &mut HashMap::new(),
        false,
    );
    output = print_normal_dependencies(&parse_output, output);
    output += "\n";
    output += &parse_output.str_model;
    output += "\n";
    let parse_output = parse(
        contents,
        "model",
        Some("Insertable, Deserialize".to_string()),
        true,
        &mut HashMap::new(),
        true,
    );
    output += &parse_output.str_model;
    (output, parse_output.model_list)
}
fn create_models ( schema : & str ) -> ( String , Vec < String > ) { let contents = schema . to_string ( ) ; let mut output = String :: new ( ) ; let parse_output = parse ( contents . clone ( ) , " " , Some ( " " . to_string ( ) ) , false , & mut HashMap :: new ( ) , false , ) ; output = print_normal_dependencies ( & parse_output , output ) ; output += " \n " ; output += & parse_output . str_model ; output += " \n " ; let parse_output = parse ( contents , " " , Some ( " " . to_string ( ) ) , true , & mut HashMap :: new ( ) , true , ) ; output += & parse_output . str_model ; ( output , parse_output . model_list ) }
Create models from the Diesel schema using `diesel_cli_ext`
Create models from the Diesel schema using ` diesel_cli_ext `
schema
&str
schema
&str