ClickHouse/src/Storages/System/StorageSystemQuotaUsage.h
Robert Schulze 777b5bc15b
Don't let storages inherit from boost::noncopyable
... IStorage has deleted copy ctor / assignment already
2022-05-03 09:07:08 +02:00

30 lines
897 B
C++

#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
struct QuotaUsage;
/** Implements the `quota_usage` system table, which allows you to get information about
* how the current user uses the quota.
*/
class StorageSystemQuotaUsage final : public IStorageSystemOneBlock<StorageSystemQuotaUsage>
{
public:
std::string getName() const override { return "SystemQuotaUsage"; }
static NamesAndTypesList getNamesAndTypes();
static NamesAndTypesList getNamesAndTypesImpl(bool add_column_is_current);
static void fillDataImpl(MutableColumns & res_columns, ContextPtr context, bool add_column_is_current, const std::vector<QuotaUsage> & quotas_usage);
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
};
}