File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -313,10 +313,12 @@ done
313
313
# --- Append content between <!-- AUTOGENERATED_START --><!-- AUTOGENERATED_END --> tags on the page
314
314
insert_src_files=(
315
315
" experimental-beta-settings.md"
316
+ " arithmetic-functions.md"
316
317
" array-functions.md"
317
318
)
318
319
insert_dest_files=(
319
320
" docs/about-us/beta-and-experimental-features.md"
321
+ " docs/sql-reference/functions/arithmetic-functions.md"
320
322
" docs/sql-reference/functions/array-functions.md"
321
323
)
322
324
echo " [$SCRIPT_NAME ] Inserting generated markdown content between <!-- AUTOGENERATED_START --> <!-- AUTOGENERATED_END --> tags"
You can’t perform that action at this time.
0 commit comments