aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/settings/partitioning.h
blob: 082890ae1531ce8889af877c4b6f4c5929862577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "translation_settings.h"
#include <util/generic/map.h>
#include <util/generic/string.h>
#include <util/generic/vector.h>

namespace NSQLTranslation {
    struct TBindingInfo {
        TString ClusterType;
        TString Cluster;
        TString Path;
        TString Schema;
        TMap<TString, TVector<TString>> Attributes;
    };

    // returns error message if any
    TString ExtractBindingInfo(const TTranslationSettings& settings, const TString& binding, TBindingInfo& result);
}  // namespace NSQLTranslation