Create StorageSystemTableViews.h

This commit is contained in:
OnePiece 2021-08-24 20:07:48 +08:00 committed by GitHub
parent ba594f41b9
commit 29aa41577f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
#pragma once
#include <ext/shared_ptr_helper.h>
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class StorageSystemTableViews final : public ext::shared_ptr_helper<StorageSystemTableViews>, public IStorageSystemOneBlock<StorageSystemTableViews>
{
friend struct ext::shared_ptr_helper<StorageSystemTableViews>;
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
public:
std::string getName() const override { return "TableViews"; }
static NamesAndTypesList getNamesAndTypes();
};
}