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

#include "sql_complete.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();

} // namespace NSQLComplete