aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/core/input.h
blob: 917ae5388c1c6f2a80468aec1a9ab9a3f95ce85d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <util/generic/string.h>

namespace NSQLComplete {

    struct TCompletionInput {
        TStringBuf Text;
        size_t CursorPosition = Text.length();
    };

    struct TMaterializedInput {
        TString Text;
        size_t CursorPosition = Text.length();
    };

    TCompletionInput SharpedInput(TString& text Y_LIFETIME_BOUND);

} // namespace NSQLComplete