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 the `quotas` system tables, which allows you to get information about quotas.
14 */
15class StorageSystemQuotas : public ext::shared_ptr_helper<StorageSystemQuotas>, public IStorageSystemOneBlock<StorageSystemQuotas>
16{
17public:
18 std::string getName() const override { return "SystemQuotas"; }
19 static NamesAndTypesList getNamesAndTypes();
20
21protected:
22 friend struct ext::shared_ptr_helper<StorageSystemQuotas>;
23 using IStorageSystemOneBlock::IStorageSystemOneBlock;
24 void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo &) const override;
25};
26
27}
28