fastcheck.h 535 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <yql/essentials/ast/yql_errors.h>
  3. #include <util/generic/hash.h>
  4. #include <yql/essentials/providers/common/provider/yql_provider_names.h>
  5. namespace NYql {
  6. namespace NFastCheck {
  7. struct TOptions {
  8. bool IsSql = true;
  9. bool ParseOnly = false;
  10. THashMap<TString, TString> ClusterMapping;
  11. ui16 SyntaxVersion = 1;
  12. bool IsLibrary = false;
  13. THashMap<TString, TString> SqlLibs = {}; // mapping file name => SQL
  14. };
  15. bool CheckProgram(const TString& program, const TOptions& options, TIssues& errors);
  16. }
  17. }