2020-08-19 08:34:03 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-24 20:29:56 +00:00
|
|
|
#if __has_include("StorageSystemTimeZones.generated.cpp")
|
|
|
|
|
|
|
|
# include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
# include <ext/shared_ptr_helper.h>
|
2020-08-19 08:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
|
|
|
/** System table "time_zones" with list of timezones pulled from /contrib/cctz/testdata/zoneinfo
|
|
|
|
*/
|
|
|
|
class StorageSystemTimeZones final : public ext::shared_ptr_helper<StorageSystemTimeZones>,
|
|
|
|
public IStorageSystemOneBlock<StorageSystemTimeZones>
|
|
|
|
{
|
|
|
|
friend struct ext::shared_ptr_helper<StorageSystemTimeZones>;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
|
|
|
|
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemTimeZones"; }
|
|
|
|
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
};
|
|
|
|
}
|
2020-08-24 20:29:56 +00:00
|
|
|
|
|
|
|
#endif
|