summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/complete/core/input.h
blob: f64412181cbd4a850865d3378344219df4445095 (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