blob: a5249bc3a48239372e64674fc4c14163eafdd108 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include <yql/essentials/sql/v1/complete/core/input.h>
#include <util/generic/ptr.h>
#include <util/generic/maybe.h>
#include <util/generic/string.h>
namespace NSQLComplete {
struct TUseContext {
TString Provider;
TString Cluster;
};
struct TGlobalContext {
TMaybe<TUseContext> Use;
};
class IGlobalAnalysis {
public:
using TPtr = THolder<IGlobalAnalysis>;
virtual ~IGlobalAnalysis() = default;
virtual TGlobalContext Analyze(TCompletionInput input) = 0;
};
IGlobalAnalysis::TPtr MakeGlobalAnalysis();
} // namespace NSQLComplete
|