aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/queryToString.cpp
blob: 9721aa1f1289dec31470d208466bbb9e0ed2d189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);
    }
}