diff options
author | max42 <max42@yandex-team.com> | 2023-07-29 00:02:16 +0300 |
---|---|---|
committer | max42 <max42@yandex-team.com> | 2023-07-29 00:02:16 +0300 |
commit | 73b89de71748a21e102d27b9f3ed1bf658766cb5 (patch) | |
tree | 188bbd2d622fa91cdcbb1b6d6d77fbc84a0646f5 /library/cpp/skiff/public.h | |
parent | 528e321bcc2a2b67b53aeba58c3bd88305a141ee (diff) | |
download | ydb-73b89de71748a21e102d27b9f3ed1bf658766cb5.tar.gz |
YT-19210: expose YQL shared library for YT.
After this, a new target libyqlplugin.so appears. in open-source cmake build.
Diff in open-source YDB repo looks like the following: https://paste.yandex-team.ru/f302bdb4-7ef2-4362-91c7-6ca45f329264
Diffstat (limited to 'library/cpp/skiff/public.h')
-rw-r--r-- | library/cpp/skiff/public.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/library/cpp/skiff/public.h b/library/cpp/skiff/public.h new file mode 100644 index 0000000000..d67c6f26ee --- /dev/null +++ b/library/cpp/skiff/public.h @@ -0,0 +1,63 @@ +#pragma once + +#include <vector> +#include <memory> + +namespace NSkiff { + +//////////////////////////////////////////////////////////////////////////////// + +enum class EWireType +{ + Nothing /* "nothing" */, + Int8 /* "int8" */, + Int16 /* "int16" */, + Int32 /* "int32" */, + Int64 /* "int64" */, + Int128 /* "int128" */, + Uint8 /* "uint8" */, + Uint16 /* "uint16" */, + Uint32 /* "uint32" */, + Uint64 /* "uint64" */, + Uint128 /* "uint128" */, + Double /* "double" */, + Boolean /* "boolean" */, + String32 /* "string32" */, + Yson32 /* "yson32" */, + + Tuple /* "tuple" */, + Variant8 /* "variant8" */, + Variant16 /* "variant16" */, + RepeatedVariant8 /* "repeated_variant8" */, + RepeatedVariant16 /* "repeated_variant16" */, +}; + +//////////////////////////////////////////////////////////////////////////////// + +class TSkiffSchema; +using TSkiffSchemaPtr = std::shared_ptr<TSkiffSchema>; + +using TSkiffSchemaList = std::vector<TSkiffSchemaPtr>; + +class TSimpleTypeSchema; +using TSimpleTypeSchemaPtr = std::shared_ptr<TSimpleTypeSchema>; + +class TSkiffValidator; + +class TUncheckedSkiffParser; +class TCheckedSkiffParser; + +class TUncheckedSkiffWriter; +class TCheckedSkiffWriter; + +#ifdef DEBUG +using TCheckedInDebugSkiffParser = TCheckedSkiffParser; +using TCheckedInDebugSkiffWriter = TCheckedSkiffWriter; +#else +using TCheckedInDebugSkiffParser = TUncheckedSkiffParser; +using TCheckedInDebugSkiffWriter = TUncheckedSkiffWriter; +#endif + +//////////////////////////////////////////////////////////////////////////////// + +} // namespace NSkiff |