mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Make IAST::FormatSettings more regular, pt. II
This commit is contained in:
parent
35a4fabc2d
commit
e5ec6a1523
@ -191,8 +191,8 @@ public:
|
||||
struct FormatSettings
|
||||
{
|
||||
WriteBuffer & ostr;
|
||||
bool hilite = false;
|
||||
bool one_line;
|
||||
bool hilite = false;
|
||||
bool always_quote_identifiers = false;
|
||||
IdentifierQuotingStyle identifier_quoting_style = IdentifierQuotingStyle::Backticks;
|
||||
bool show_secrets = true; /// Show secret parts of the AST (e.g. passwords, encryption keys).
|
||||
@ -207,13 +207,13 @@ public:
|
||||
|
||||
FormatSettings(WriteBuffer & ostr_, const FormatSettings & other)
|
||||
: ostr(ostr_)
|
||||
, hilite(other.hilite)
|
||||
, one_line(other.one_line)
|
||||
, hilite(other.hilite)
|
||||
, always_quote_identifiers(other.always_quote_identifiers)
|
||||
, identifier_quoting_style(other.identifier_quoting_style)
|
||||
, show_secrets(other.show_secrets)
|
||||
, nl_or_ws(other.nl_or_ws)
|
||||
{
|
||||
nl_or_ws = one_line ? ' ' : '\n';
|
||||
}
|
||||
|
||||
void writeIdentifier(const String & name) const;
|
||||
|
Loading…
Reference in New Issue
Block a user