easy_sql.sql_linter.sql_linter_cli

Module Contents

Functions

cli()

Check or fix violations in SQL.

fix(path, config_path, exclude, include, backend, inplace, easy_sql)

fix_process(path, exclude, include, backend, inplace, easy_sql, config_path = None)

lint(path, config_path, exclude, include, backend, easy_sql)

lint_process(check_sql_file_path, exclude, include, backend, easy_sql, config_path = None)

parse_backend(sql)

split_rules_to_list(rule_description)

write_out_fixed(check_sql_file_path, fixed, inplace)

easy_sql.sql_linter.sql_linter_cli.cli()

Check or fix violations in SQL.

easy_sql.sql_linter.sql_linter_cli.fix(path, config_path, exclude, include, backend, inplace, easy_sql)
Parameters
  • path (str) –

  • config_path (str) –

  • exclude (str) –

  • include (str) –

  • backend (str) –

  • inplace (bool) –

  • easy_sql (bool) –

easy_sql.sql_linter.sql_linter_cli.fix_process(path, exclude, include, backend, inplace, easy_sql, config_path=None)
Parameters
  • path (str) –

  • exclude (str) –

  • include (str) –

  • backend (str) –

  • inplace (bool) –

  • easy_sql (bool) –

  • config_path (Optional[str]) –

easy_sql.sql_linter.sql_linter_cli.lint(path, config_path, exclude, include, backend, easy_sql)
Parameters
  • path (str) –

  • config_path (str) –

  • exclude (str) –

  • include (str) –

  • backend (str) –

  • easy_sql (bool) –

easy_sql.sql_linter.sql_linter_cli.lint_process(check_sql_file_path, exclude, include, backend, easy_sql, config_path=None)
Parameters
  • check_sql_file_path (str) –

  • exclude (str) –

  • include (str) –

  • backend (str) –

  • easy_sql (bool) –

  • config_path (Optional[str]) –

easy_sql.sql_linter.sql_linter_cli.parse_backend(sql)
Parameters

sql (str) –

easy_sql.sql_linter.sql_linter_cli.split_rules_to_list(rule_description)
Parameters

rule_description (str) –

Return type

Optional[List[str]]

easy_sql.sql_linter.sql_linter_cli.write_out_fixed(check_sql_file_path, fixed, inplace)
Parameters
  • check_sql_file_path (str) –

  • fixed (str) –

  • inplace (bool) –