Skip to content

Commit de9a4e6

Browse files
committed
backtick default and type
1 parent 4c32a82 commit de9a4e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/settings/autogenerate-settings.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ settings_from_cpp AS
5858
),
5959
main_content AS
6060
(
61-
SELECT format('## {} {}\\n{}\\n\\nType: {}\\n\\nDefault value: {}\\n\\n{}\\n\\n',
61+
SELECT format('## {} {}\\n{}\\n\\nType: \`{}\`\\n\\nDefault: \`{}\`\\n\\n{}\\n\\n',
6262
name, '{#'||name||'}', multiIf(tier == 'Experimental', '<ExperimentalBadge/>', tier == 'Beta', '<BetaBadge/>', ''), type, default, trim(BOTH '\\n' FROM description))
6363
FROM system.settings WHERE name IN settings_from_cpp
6464
ORDER BY name
@@ -162,8 +162,8 @@ WITH
162162
'## {} {}\n\n{}{}{}\n\n',
163163
name,
164164
lcase('{#'||name||'}'),
165-
if(type != '', concat('Type: ', type, '\n\n'), ''),
166-
if(default != '', concat('Default: ', default, '\n\n'), ''),
165+
if(type != '', concat('Type: \`', type, '\`\n\n'), ''),
166+
if(default != '', concat('Default: \`', default, '\`\n\n'), ''),
167167
description
168168
) AS formatted_text
169169
FROM combined_server_settings

0 commit comments

Comments
 (0)