@@ -17676,17 +17676,17 @@ FROM films AS f;
17676
17676
</listitem>
17677
17677
<listitem>
17678
17678
<para>
17679
- <xref linkend="functions-jsonexists"/ >
17679
+ <link linkend="functions-jsonexists"><literal>JSON_EXISTS</literal></link >
17680
17680
</para>
17681
17681
</listitem>
17682
17682
<listitem>
17683
17683
<para>
17684
- <xref linkend="functions-jsonvalue"/ >
17684
+ <link linkend="functions-jsonvalue"><literal>JSON_VALUE</literal></link >
17685
17685
</para>
17686
17686
</listitem>
17687
17687
<listitem>
17688
17688
<para>
17689
- <xref linkend="functions-jsonquery"/ >
17689
+ <link linkend="functions-jsonquery"><literal>JSON_QUERY</literal></link >
17690
17690
</para>
17691
17691
</listitem>
17692
17692
</itemizedlist>
@@ -17718,32 +17718,28 @@ INSERT INTO my_films VALUES (
17718
17718
</programlisting>
17719
17719
</para>
17720
17720
17721
- <refentry id="functions-jsonexists">
17722
- <refnamediv>
17723
- <refname>JSON_EXISTS</refname>
17724
- <refpurpose>check whether a JSON path expression can return any SQL/JSON items</refpurpose>
17725
- </refnamediv>
17721
+ <sect4 id="functions-jsonexists">
17722
+ <title><literal>JSON_EXISTS</literal></title>
17723
+ <indexterm><primary>json_exists</primary></indexterm>
17726
17724
17727
- <refsynopsisdiv>
17728
17725
<synopsis>
17729
17726
<function>JSON_EXISTS</function> (
17730
17727
<replaceable>context_item</replaceable>, <replaceable>path_expression</replaceable> <optional> PASSING { <replaceable>value</replaceable> AS <replaceable>varname</replaceable> } <optional>, ...</optional></optional>
17731
17728
<optional> RETURNING <replaceable class="parameter">data_type</replaceable> </optional>
17732
17729
<optional> { TRUE | FALSE | UNKNOWN | ERROR } ON ERROR </optional>
17733
17730
)
17734
17731
</synopsis>
17735
- </refsynopsisdiv>
17736
17732
17737
- <refsect1 >
17733
+ <sect5 >
17738
17734
<title>Description</title>
17739
17735
17740
17736
<para>
17741
17737
<function>JSON_EXISTS</function> function checks whether the provided
17742
17738
<acronym>JSON</acronym> path expression can return any <acronym>SQL/JSON</acronym> items.
17743
17739
</para>
17744
- </refsect1 >
17740
+ </sect5 >
17745
17741
17746
- <refsect1 >
17742
+ <sect5 >
17747
17743
<title>Parameters</title>
17748
17744
<variablelist>
17749
17745
<varlistentry>
@@ -17784,9 +17780,9 @@ INSERT INTO my_films VALUES (
17784
17780
</varlistentry>
17785
17781
17786
17782
</variablelist>
17787
- </refsect1 >
17783
+ </sect5 >
17788
17784
17789
- <refsect1 >
17785
+ <sect5 >
17790
17786
<title>Examples</title>
17791
17787
17792
17788
<para>
@@ -17831,17 +17827,13 @@ SELECT JSON_EXISTS(jsonb '{"a": [1,2,3]}', 'strict $.a[5]');
17831
17827
(1 row)
17832
17828
</screen>
17833
17829
17834
- </refsect1 >
17835
- </refentry >
17830
+ </sect5 >
17831
+ </sect4 >
17836
17832
17837
- <refentry id="functions-jsonvalue">
17838
- <refnamediv>
17839
- <refname>JSON_VALUE</refname>
17840
- <refpurpose>extract a value from JSON data and convert
17841
- it to an <acronym>SQL</acronym> scalar</refpurpose>
17842
- </refnamediv>
17833
+ <sect4 id="functions-jsonvalue">
17834
+ <title><literal>JSON_VALUE</literal></title>
17835
+ <indexterm><primary>json_value</primary></indexterm>
17843
17836
17844
- <refsynopsisdiv>
17845
17837
<synopsis>
17846
17838
<function>JSON_VALUE</function> (
17847
17839
<replaceable>context_item</replaceable>, <replaceable>path_expression</replaceable> <optional> PASSING { <replaceable>value</replaceable> AS <replaceable>varname</replaceable> } <optional>, ...</optional></optional>
@@ -17850,9 +17842,8 @@ SELECT JSON_EXISTS(jsonb '{"a": [1,2,3]}', 'strict $.a[5]');
17850
17842
<optional> { ERROR | NULL | DEFAULT <replaceable class="parameter">expression</replaceable> } ON ERROR </optional>
17851
17843
)
17852
17844
</synopsis>
17853
- </refsynopsisdiv>
17854
17845
17855
- <refsect1 >
17846
+ <sect5 >
17856
17847
<title>Description</title>
17857
17848
17858
17849
<para>
@@ -17862,9 +17853,9 @@ SELECT JSON_EXISTS(jsonb '{"a": [1,2,3]}', 'strict $.a[5]');
17862
17853
<acronym>SQL/JSON</acronym> item, an error occurs. To extract
17863
17854
an <acronym>SQL/JSON</acronym> array or object, use <xref linkend="functions-jsonquery"/>.
17864
17855
</para>
17865
- </refsect1 >
17856
+ </sect5 >
17866
17857
17867
- <refsect1 >
17858
+ <sect5 >
17868
17859
<title>Parameters</title>
17869
17860
17870
17861
<variablelist>
@@ -17932,9 +17923,9 @@ SELECT JSON_EXISTS(jsonb '{"a": [1,2,3]}', 'strict $.a[5]');
17932
17923
</varlistentry>
17933
17924
17934
17925
</variablelist>
17935
- </refsect1 >
17926
+ </sect5 >
17936
17927
17937
- <refsect1 >
17928
+ <sect5 >
17938
17929
<title>Examples</title>
17939
17930
17940
17931
<para>
@@ -17993,17 +17984,13 @@ SELECT JSON_VALUE(jsonb '[1,2]', 'strict $[*]' DEFAULT 1 ON ERROR);
17993
17984
1
17994
17985
</screen>
17995
17986
17996
- </refsect1 >
17997
- </refentry >
17987
+ </sect5 >
17988
+ </sect4 >
17998
17989
17999
- <refentry id="functions-jsonquery">
18000
- <refnamediv>
18001
- <refname>JSON_QUERY</refname>
18002
- <refpurpose>extract an SQL/JSON array or object from JSON data
18003
- and return a JSON string</refpurpose>
18004
- </refnamediv>
17990
+ <sect4 id="functions-jsonquery">
17991
+ <title><literal>JSON_QUERY</literal></title>
17992
+ <indexterm><primary>json_query</primary></indexterm>
18005
17993
18006
- <refsynopsisdiv>
18007
17994
<synopsis>
18008
17995
<function>JSON_QUERY</function> (
18009
17996
<replaceable>context_item</replaceable>, <replaceable>path_expression</replaceable> <optional> PASSING { <replaceable>value</replaceable> AS <replaceable>varname</replaceable> } <optional>, ...</optional></optional>
@@ -18014,9 +18001,8 @@ SELECT JSON_VALUE(jsonb '[1,2]', 'strict $[*]' DEFAULT 1 ON ERROR);
18014
18001
<optional> { ERROR | NULL | EMPTY { <optional> ARRAY </optional> | OBJECT } | DEFAULT <replaceable class="parameter">expression</replaceable> } ON ERROR </optional>
18015
18002
)
18016
18003
</synopsis>
18017
- </refsynopsisdiv>
18018
18004
18019
- <refsect1 >
18005
+ <sect5 >
18020
18006
<title>Description</title>
18021
18007
18022
18008
<para>
@@ -18026,9 +18012,9 @@ SELECT JSON_VALUE(jsonb '[1,2]', 'strict $[*]' DEFAULT 1 ON ERROR);
18026
18012
items, you must wrap the result using the <literal>WITH WRAPPER</literal> clause.
18027
18013
To extract a single <acronym>SQL/JSON</acronym> value, you can use <xref linkend="functions-jsonvalue"/>.
18028
18014
</para>
18029
- </refsect1 >
18015
+ </sect5 >
18030
18016
18031
- <refsect1 >
18017
+ <sect5 >
18032
18018
<title>Parameters</title>
18033
18019
18034
18020
<variablelist>
@@ -18159,9 +18145,9 @@ SELECT JSON_VALUE(jsonb '[1,2]', 'strict $[*]' DEFAULT 1 ON ERROR);
18159
18145
</varlistentry>
18160
18146
18161
18147
</variablelist>
18162
- </refsect1 >
18148
+ </sect5 >
18163
18149
18164
- <refsect1 >
18150
+ <sect5 >
18165
18151
<title>Examples</title>
18166
18152
18167
18153
<para>
@@ -18224,8 +18210,8 @@ SELECT JSON_QUERY(jsonb '"aaa"', '$' RETURNING text OMIT QUOTES);
18224
18210
aaa
18225
18211
(1 row)
18226
18212
</screen>
18227
- </refsect1 >
18228
- </refentry >
18213
+ </sect5 >
18214
+ </sect4 >
18229
18215
18230
18216
<sect4 id="functions-isjson-predicate">
18231
18217
<title><literal>IS JSON</literal></title>
0 commit comments