| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <ext/shared_ptr_helper.h> |
| 4 | #include <Storages/System/IStorageSystemOneBlock.h> |
| 5 | |
| 6 | |
| 7 | namespace DB |
| 8 | { |
| 9 | |
| 10 | class Context; |
| 11 | |
| 12 | |
| 13 | /** Implements the `quotas` system tables, which allows you to get information about quotas. |
| 14 | */ |
| 15 | class StorageSystemQuotas : public ext::shared_ptr_helper<StorageSystemQuotas>, public IStorageSystemOneBlock<StorageSystemQuotas> |
| 16 | { |
| 17 | public: |
| 18 | std::string getName() const override { return "SystemQuotas"; } |
| 19 | static NamesAndTypesList getNamesAndTypes(); |
| 20 | |
| 21 | protected: |
| 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 |