1- select ' dynamic' as component,
2- json_set(
3- properties,
4- ' $[0].title' ,
5- ' SQLPage functions' || COALESCE(' : ' || $function, ' documentation' )
6- ) as properties
1+ select ' dynamic' as component, properties
72FROM example WHERE component = ' shell' LIMIT 1 ;
83
4+ select ' breadcrumb' as component;
5+ select ' SQLPage' as title, ' /' as link, ' Home page' as description;
6+ select ' Functions' as title, ' /functions.sql' as link, ' List of all functions' as description;
7+ select $function as title, sqlpage .link (' functions.sql' , json_object(' function' , $function)) as link where $function IS NOT NULL ;
8+
99select ' text' as component, ' SQLPage built-in functions' as title where $function IS NULL ;
1010select '
1111In addition to normal SQL functions supported by your database,
@@ -28,10 +28,8 @@ from sqlpage_functions
2828where $function IS NULL
2929order by name;
3030
31- select ' text' as component,
32- ' The sqlpage.' || $function || ' function' as title,
33- ' function' as id
34- where $function IS NOT NULL ;
31+ select ' text' as component, ' sqlpage.' || $function || ' (' || string_agg(name, ' , ' ) || ' )' as title, ' function' as id
32+ from sqlpage_function_parameters where $function IS NOT NULL and " function" = $function;
3533
3634select ' text' as component;
3735select ' Introduced in SQLPage ' || introduced_in_version || ' .' as contents, 1 as size from sqlpage_functions where name = $function;
0 commit comments