Function doteur_core::process_data

source ·
pub fn process_data(
    data: &str,
    restrictions: Option<&Restriction>,
    legend: bool,
    dark_mode: bool
) -> String
Expand description

Process the given file and return the output as a string

This function takes a SQL table as data and returns it as a DOT output.

Arguments

  • data - The SQL content as a string
  • restrictions - The list of filters we want to apply on the input
  • legend - Whether we add a legend describing the types of relations at the end of the file or not.
  • dark_mode - Whether the output needs to be rendered in dark mode or not.