mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +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);
|
|
}
|
|
}
|