aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/sql_context.h
blob: 72d481ca9c44398e8d19bfde309fba220d34809e (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
#pragma once

#include "sql_complete.h"

#include <yql/essentials/sql/v1/lexer/lexer.h>

#include <util/generic/string.h>

namespace NSQLComplete {

    struct TCompletionContext {
        TVector<TString> Keywords;
    };

    class ISqlContextInference {
    public:
        using TPtr = THolder<ISqlContextInference>;

        virtual TCompletionContext Analyze(TCompletionInput input) = 0;
        virtual ~ISqlContextInference() = default;
    };

    ISqlContextInference::TPtr MakeSqlContextInference(TLexerSupplier lexer);

} // namespace NSQLComplete