blob: 29dd786ca0aef8c7939a0ce255d265a75a9badc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/** Implements `databases` system table, which allows you to get information about all databases.
*/
class StorageSystemDatabases final : public IStorageSystemOneBlock<StorageSystemDatabases>
{
public:
std::string getName() const override
{
return "SystemDatabases";
}
static NamesAndTypesList getNamesAndTypes();
static NamesAndAliases getNamesAndAliases();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
bool supportsColumnsMask() const override { return true; }
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
};
}
|