| 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 `replication_queue` system table, which allows you to view the replication queues for the replicated tables. | 
| 14 | */ | 
| 15 | class StorageSystemReplicationQueue : public ext::shared_ptr_helper<StorageSystemReplicationQueue>, public IStorageSystemOneBlock<StorageSystemReplicationQueue> | 
| 16 | { | 
| 17 | friend struct ext::shared_ptr_helper<StorageSystemReplicationQueue>; | 
| 18 | public: | 
| 19 | std::string getName() const override { return "SystemReplicationQueue"; } | 
| 20 | |
| 21 | static NamesAndTypesList getNamesAndTypes(); | 
| 22 | |
| 23 | protected: | 
| 24 | using IStorageSystemOneBlock::IStorageSystemOneBlock; | 
| 25 | |
| 26 | void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override; | 
| 27 | }; | 
| 28 | |
| 29 | } | 
| 30 | 
