sql.h 847 B

1234567891011121314151617
  1. #pragma once
  2. #include <yql/essentials/ast/yql_ast.h>
  3. #include <yql/essentials/parser/proto_ast/common.h>
  4. #include <yql/essentials/public/issue/yql_warning.h>
  5. #include <yql/essentials/public/issue/yql_issue_manager.h>
  6. #include <yql/essentials/sql/settings/translation_settings.h>
  7. #include <google/protobuf/message.h>
  8. namespace NSQLTranslationV0 {
  9. NYql::TAstParseResult SqlToYql(const TString& query, const NSQLTranslation::TTranslationSettings& settings, NYql::TWarningRules* warningRules = nullptr);
  10. google::protobuf::Message* SqlAST(const TString& query, const TString& queryName, NYql::TIssues& err, size_t maxErrors, google::protobuf::Arena* arena = nullptr);
  11. NYql::TAstParseResult SqlASTToYql(const google::protobuf::Message& protoAst, const NSQLTranslation::TTranslationSettings& settings);
  12. } // namespace NSQLTranslationV0