mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
16 lines
275 B
C++
16 lines
275 B
C++
#include <Parsers/queryToString.h>
|
|
#include <Parsers/formatAST.h>
|
|
|
|
namespace DB
|
|
{
|
|
String queryToString(const ASTPtr & query)
|
|
{
|
|
return queryToString(*query);
|
|
}
|
|
|
|
String queryToString(const IAST & query)
|
|
{
|
|
return serializeAST(query);
|
|
}
|
|
}
|