diff options
author | vvvv <[email protected]> | 2025-04-03 20:38:46 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2025-04-03 20:50:12 +0300 |
commit | 589b3cc093fe2f37ac0681ffeaeb09d9835fef34 (patch) | |
tree | dc7c792244856822b4e6af1566cccdcfa97d01e7 /yql/essentials/sql/v1/context.cpp | |
parent | 85007bec1130c8520ccdcf36672e26f7af2f31fa (diff) |
YQL-19747 pragmas
commit_hash:7aaa06cd58cc9563a1656a7118c14a461e7f4e2d
Diffstat (limited to 'yql/essentials/sql/v1/context.cpp')
-rw-r--r-- | yql/essentials/sql/v1/context.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/context.cpp b/yql/essentials/sql/v1/context.cpp index 569ae375ebc..de2668608ea 100644 --- a/yql/essentials/sql/v1/context.cpp +++ b/yql/essentials/sql/v1/context.cpp @@ -658,4 +658,16 @@ void TTranslation::AltNotImplemented(const TString& ruleName, ui32 altCase, cons Error() << ruleName << ": alternative is not implemented yet: " << AltDescription(node, altCase, descr); } +void EnumerateSqlFlags(std::function<void(std::string_view)> callback) { + for (const auto& x : CTX_PRAGMA_FIELDS) { + callback(x.first); + callback(TString("Disable") + x.first); + } + + for (const auto& x : CTX_PRAGMA_MAYBE_FIELDS) { + callback(x.first); + callback(TString("Disable") + x.first); + } +} + } // namespace NSQLTranslationV1 |