aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/toOneLineQuery.h
blob: e050c2f845035bb87ba597e9da24f06f2181f39b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <base/types.h>

namespace DB
{

/// Removes new lines from query.
///
/// But with some care:
/// - don't join lines inside non-whitespace tokens (e.g. multiline string literals)
/// - don't join line after comment (because it can be single-line comment).
/// All other whitespaces replaced to a single whitespace.
String toOneLineQuery(const String & query);

}