mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
59844b0a9d
Accepts CH client queries in the form of SHOW FUNCTIONS [LIKE | ILIKE '< pattern>'] Retrieves all columns from `functions` table in system database. Fixes #52757
24 lines
525 B
C++
24 lines
525 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTShowFunctionsQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
bool case_insensitive_like = false;
|
|
String like;
|
|
|
|
String getID(char) const override { return "ShowFunctions"; }
|
|
ASTPtr clone() const override;
|
|
QueryKind getQueryKind() const override { return QueryKind::Show; }
|
|
|
|
protected:
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
|
|
}
|