Skip to content

Commit 943aa93

Browse files
authored
Merge branch 'main' into autogen_array_functions
2 parents 13beb13 + 64040ba commit 943aa93

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
WITH arithmetic_functions AS (
2+
SELECT
3+
name,
4+
introduced_in,
5+
syntax,
6+
arguments,
7+
returned_value,
8+
examples
9+
FROM system.functions WHERE categories='Arithmetic' ORDER BY name ASC
10+
)
11+
SELECT
12+
format(
13+
'{}{}{}{}{}{}',
14+
'## ' || name || ' ' || printf('{#%s}', name) || '\n\n',
15+
'Introduced in: v'||introduced_in||'\n\n',
16+
'**Syntax**\n\n'||printf('```sql\n%s\n```', syntax)||'\n\n',
17+
'**Arguments**\n\n'||arguments||'\n',
18+
'**Returned value**\n\n'||trim(returned_value)||'\n\n',
19+
'**Examples**\n\n'||examples||'\n'
20+
)
21+
FROM arithmetic_functions
22+
INTO OUTFILE 'arithmetic-functions.md' TRUNCATE FORMAT LineAsString

scripts/settings/autogenerate-settings.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,12 @@ done
313313
# --- Append content between <!-- AUTOGENERATED_START --><!-- AUTOGENERATED_END --> tags on the page
314314
insert_src_files=(
315315
"experimental-beta-settings.md"
316+
"arithmetic-functions.md"
316317
"array-functions.md"
317318
)
318319
insert_dest_files=(
319320
"docs/about-us/beta-and-experimental-features.md"
321+
"docs/sql-reference/functions/arithmetic-functions.md"
320322
"docs/sql-reference/functions/array-functions.md"
321323
)
322324
echo "[$SCRIPT_NAME] Inserting generated markdown content between <!-- AUTOGENERATED_START --> <!-- AUTOGENERATED_END --> tags"

0 commit comments

Comments
 (0)