ClickHouse/src/Parsers/ASTShowFunctionsQuery.h
Julia Kartseva 59844b0a9d Add SHOW FUNCTIONS support to client
Accepts CH client queries in the form of
SHOW FUNCTIONS [LIKE | ILIKE '< pattern>']

Retrieves all columns from `functions` table in system database.

Fixes #52757
2023-09-07 14:08:50 -07:00

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;
};
}