1#pragma once
2
3#include <ext/shared_ptr_helper.h>
4#include <Storages/System/IStorageSystemOneBlock.h>
5
6
7namespace DB
8{
9
10class Context;
11
12
13/// Implements `row_policies` system table, which allows you to get information about row policies.
14class StorageSystemRowPolicies : public ext::shared_ptr_helper<StorageSystemRowPolicies>, public IStorageSystemOneBlock<StorageSystemRowPolicies>
15{
16public:
17 std::string getName() const override { return "SystemRowPolicies"; }
18 static NamesAndTypesList getNamesAndTypes();
19
20protected:
21 friend struct ext::shared_ptr_helper<StorageSystemRowPolicies>;
22 using IStorageSystemOneBlock::IStorageSystemOneBlock;
23 void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo &) const override;
24};
25
26}
27