mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
310ed66b00
This reverts commit 6f4f44ce7980cace32edd0913b8d1d53cd51682b.
27 lines
480 B
C++
27 lines
480 B
C++
#pragma once
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
/** USE запрос
|
|
*/
|
|
class ASTUseQuery : public IAST
|
|
{
|
|
public:
|
|
String database;
|
|
|
|
ASTUseQuery() = default;
|
|
ASTUseQuery(const StringRange range_) : IAST(range_) {}
|
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
|
String getID() const override { return "UseQuery_" + database; };
|
|
|
|
ASTPtr clone() const override { return new ASTUseQuery(*this); }
|
|
};
|
|
|
|
}
|