ClickHouse/src/Storages/System/StorageSystemTimeZones.h

27 lines
670 B
C++
Raw Normal View History

#pragma once
#include <boost/noncopyable.hpp>
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/** System table "time_zones" with list of timezones pulled from /contrib/cctz/testdata/zoneinfo
*/
class StorageSystemTimeZones final : public IStorageSystemOneBlock<StorageSystemTimeZones>, boost::noncopyable
{
public:
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
using IStorageSystemOneBlock::IStorageSystemOneBlock;
public:
std::string getName() const override { return "SystemTimeZones"; }
static NamesAndTypesList getNamesAndTypes();
};
}