#pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace NSQLTranslation { struct TTranslationSettings; } namespace NSQLTranslationV1 { //FIXME remove NYql::TAstParseResult SqlToYql(const TString& query, const NSQLTranslation::TTranslationSettings& settings, NYql::TWarningRules* warningRules = nullptr); NYql::TAstParseResult SqlToYql(const TLexers& lexers, const TParsers& parsers, const TString& query, const NSQLTranslation::TTranslationSettings& settings, NYql::TWarningRules* warningRules = nullptr); //FIXME remove NYql::TAstParseResult SqlASTToYql(const TString& query, const google::protobuf::Message& protoAst, const NSQLTranslation::TSQLHints& hints, const NSQLTranslation::TTranslationSettings& settings); NYql::TAstParseResult SqlASTToYql(const TLexers& lexers, const TParsers& parsers, const TString& query, const google::protobuf::Message& protoAst, const NSQLTranslation::TSQLHints& hints, const NSQLTranslation::TTranslationSettings& settings); //FIXME remove TVector SqlToAstStatements(const TString& query, const NSQLTranslation::TTranslationSettings& settings, NYql::TWarningRules* warningRules, TVector* stmtParseInfo = nullptr); TVector SqlToAstStatements(const TLexers& lexers, const TParsers& parsers, const TString& query, const NSQLTranslation::TTranslationSettings& settings, NYql::TWarningRules* warningRules, TVector* stmtParseInfo = nullptr); bool NeedUseForAllStatements(const NSQLv1Generated::TRule_sql_stmt_core::AltCase& subquery); //FIXME remove bool SplitQueryToStatements(const TString& query, TVector& statements, NYql::TIssues& issues, const NSQLTranslation::TTranslationSettings& settings); bool SplitQueryToStatements(const TLexers& lexers, const TParsers& parsers, const TString& query, TVector& statements, NYql::TIssues& issues, const NSQLTranslation::TTranslationSettings& settings); NSQLTranslation::TTranslatorPtr MakeTranslator(); NSQLTranslation::TTranslatorPtr MakeTranslator(const TLexers& lexers, const TParsers& parsers); } // namespace NSQLTranslationV1