summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/proto_parser/proto_parser.h
diff options
context:
space:
mode:
authorvvvv <[email protected]>2024-11-07 12:29:36 +0300
committervvvv <[email protected]>2024-11-07 13:49:47 +0300
commitd4c258e9431675bab6745c8638df6e3dfd4dca6b (patch)
treeb5efcfa11351152a4c872fccaea35749141c0b11 /yql/essentials/sql/v1/proto_parser/proto_parser.h
parent13a4f274caef5cfdaf0263b24e4d6bdd5521472b (diff)
Moved other yql/essentials libs YQL-19206
init commit_hash:7d4c435602078407bbf20dd3c32f9c90d2bbcbc0
Diffstat (limited to 'yql/essentials/sql/v1/proto_parser/proto_parser.h')
-rw-r--r--yql/essentials/sql/v1/proto_parser/proto_parser.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/proto_parser/proto_parser.h b/yql/essentials/sql/v1/proto_parser/proto_parser.h
new file mode 100644
index 00000000000..14440953196
--- /dev/null
+++ b/yql/essentials/sql/v1/proto_parser/proto_parser.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <yql/essentials/ast/yql_ast.h>
+#include <yql/essentials/parser/proto_ast/common.h>
+#include <yql/essentials/public/issue/yql_warning.h>
+#include <yql/essentials/public/issue/yql_issue_manager.h>
+#include <yql/essentials/sql/settings/translation_settings.h>
+
+#include <google/protobuf/message.h>
+
+namespace NSQLTranslation {
+ struct TTranslationSettings;
+}
+
+namespace NSQLTranslationV1 {
+
+ google::protobuf::Message* SqlAST(const TString& query, const TString& queryName,
+ NYql::TIssues& err, size_t maxErrors, bool ansiLexer, bool antlr4Parser, bool testAntlr4, google::protobuf::Arena* arena);
+ google::protobuf::Message* SqlAST(const TString& query, const TString& queryName,
+ NProtoAST::IErrorCollector& err, bool ansiLexer, bool antlr4Parser, bool testAntlr4, google::protobuf::Arena* arena);
+
+} // namespace NSQLTranslationV1