export function sqlToGraphCmd()

in src/commands/sqlToGraph.ts [8:22]


export function sqlToGraphCmd(
  sqlConfigFile: string,
  query: string,
  templateFile: string,
  graphConfigFile: string
) {
  const sqlConfig = fs.readJSONSync(sqlConfigFile);
  const template = fs.readFileSync(templateFile, { encoding: 'utf-8' });
  const graphConfig: any = fs.readJSONSync(graphConfigFile);
  sqlToGraph(sqlConfig, query, template, graphConfig, err => {
    if (err) {
      console.log(err.message);
    }
  });
}