diff options
| author | vityaman <[email protected]> | 2025-05-23 18:39:07 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-05-23 18:56:51 +0300 |
| commit | 7c0f642f72f590d66d364c59e77ab1a7e4d7fcf2 (patch) | |
| tree | f278253c47fb2749b353d7b31ad593ef2be92899 /yql/essentials/sql/v1/complete/sql_complete.h | |
| parent | bed215f88992e53d74c041c0908555bbd70033ab (diff) | |
YQL-19747: Support statement blacklist
I leaved the YDB configuration empty as need your feedback.
---
- Related to `YQL-19747`
- Related to https://github.com/vityaman/ydb/issues/39
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1289
commit_hash:408c7e0f101027fc6ca3d86d251b5639fcae07bb
Diffstat (limited to 'yql/essentials/sql/v1/complete/sql_complete.h')
| -rw-r--r-- | yql/essentials/sql/v1/complete/sql_complete.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/sql_complete.h b/yql/essentials/sql/v1/complete/sql_complete.h index 1bc2c0ecf4e..a600efcdac9 100644 --- a/yql/essentials/sql/v1/complete/sql_complete.h +++ b/yql/essentials/sql/v1/complete/sql_complete.h @@ -8,6 +8,7 @@ #include <util/generic/string.h> #include <util/generic/vector.h> +#include <util/generic/hash_set.h> namespace NSQLComplete { @@ -46,6 +47,7 @@ namespace NSQLComplete { struct TConfiguration { size_t Limit = 256; + THashSet<TString> IgnoredRules; }; virtual ~ISqlCompletionEngine() = default; @@ -55,6 +57,10 @@ namespace NSQLComplete { using TLexerSupplier = std::function<NSQLTranslation::ILexer::TPtr(bool ansi)>; + ISqlCompletionEngine::TConfiguration MakeYDBConfiguration(); + + ISqlCompletionEngine::TConfiguration MakeYQLConfiguration(); + ISqlCompletionEngine::TPtr MakeSqlCompletionEngine( TLexerSupplier lexer, INameService::TPtr names, |
