blob: 8153f8253ed0f644baf2d1b0722609720ee3d17d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#pragma once
#include <util/folder/path.h>
#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <util/generic/hash.h>
namespace NYql {
namespace NUserData {
enum class EType {
LIBRARY,
FILE,
UDF
};
enum class EDisposition {
INLINE,
RESOURCE,
RESOURCE_FILE,
URL,
FILESYSTEM
};
struct TUserData {
EType Type_;
EDisposition Disposition_;
TString Name_;
TString Content_;
static void UserDataToLibraries(
const TVector<TUserData>& userData,
THashMap<TString,TString>& libraries
);
static void FillFromFolder(
TFsPath root,
EType type,
TVector<TUserData>& userData
);
};
}
}
|