ClickHouse/src/Storages/System/StorageSystemTables.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
731 B
C++
Raw Normal View History

2012-05-08 11:19:00 +00:00
#pragma once
#include <Storages/IStorage.h>
2012-05-08 11:19:00 +00:00
namespace DB
{
2016-12-08 02:49:04 +00:00
class Context;
2017-04-16 15:00:33 +00:00
/** Implements the system table `tables`, which allows you to get information about all tables.
2012-05-08 11:19:00 +00:00
*/
class StorageSystemTables final : public IStorage
2012-05-08 11:19:00 +00:00
{
public:
explicit StorageSystemTables(const StorageID & table_id_);
std::string getName() const override { return "SystemTables"; }
2012-05-08 11:19:00 +00:00
2020-08-06 12:24:05 +00:00
Pipe read(
2012-05-08 11:19:00 +00:00
const Names & column_names,
const StorageSnapshotPtr & storage_snapshot,
SelectQueryInfo & query_info,
ContextPtr context,
2018-04-19 15:18:26 +00:00
QueryProcessingStage::Enum processed_stage,
size_t max_block_size,
size_t num_streams) override;
2012-05-08 11:19:00 +00:00
bool isSystemStorage() const override { return true; }
2012-05-08 11:19:00 +00:00
};
}