summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/analysis/global/use.h
diff options
context:
space:
mode:
authorvityaman <[email protected]>2025-05-20 12:50:28 +0300
committerrobot-piglet <[email protected]>2025-05-20 13:07:06 +0300
commit16630d4dfad772e0108e694f76f922e486cd6439 (patch)
tree9502ff9057dfb71a94154f66a3e6452bf684c8fd /yql/essentials/sql/v1/complete/analysis/global/use.h
parent2cca5c2b53580983c51f00239859e45d4bc32836 (diff)
YQL-19747: Support USE statement
Introduce global analysis which will be extended with more ParseTree analysis later. --- - Related to `YQL-19747` - Related to https://github.com/vityaman/ydb/issues/40 --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1281 commit_hash:848fb3fdd6bc9612769c47d66198fca018ff465f
Diffstat (limited to 'yql/essentials/sql/v1/complete/analysis/global/use.h')
-rw-r--r--yql/essentials/sql/v1/complete/analysis/global/use.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/complete/analysis/global/use.h b/yql/essentials/sql/v1/complete/analysis/global/use.h
new file mode 100644
index 00000000000..54f3557fd62
--- /dev/null
+++ b/yql/essentials/sql/v1/complete/analysis/global/use.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "global.h"
+#include "parse_tree.h"
+
+#include <util/generic/ptr.h>
+#include <util/generic/maybe.h>
+#include <util/generic/string.h>
+
+namespace NSQLComplete {
+
+ TMaybe<TUseContext> FindUseStatement(
+ SQLv1::Sql_queryContext* ctx,
+ antlr4::TokenStream* tokens,
+ size_t cursorPosition);
+
+} // namespace NSQLComplete