File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
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 @@ -311,9 +311,13 @@ for i in "${!append_src_files[@]}"; do
311
311
done
312
312
313
313
# --- Append content between <!-- AUTOGENERATED_START --><!-- AUTOGENERATED_END --> tags on the page
314
- insert_src_files=(" experimental-beta-settings.md" )
314
+ insert_src_files=(
315
+ " experimental-beta-settings.md"
316
+ " arithmetic-functions.md"
317
+ )
315
318
insert_dest_files=(
316
319
" docs/about-us/beta-and-experimental-features.md"
320
+ " docs/sql-reference/functions/arithmetic-functions.md"
317
321
)
318
322
echo " [$SCRIPT_NAME ] Inserting generated markdown content between <!-- AUTOGENERATED_START --> <!-- AUTOGENERATED_END --> tags"
319
323
for i in " ${! insert_src_files[@]} " ; do
You can’t perform that action at this time.
0 commit comments