Skip to content

Commit

Permalink
deploy: f88db05
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Dec 7, 2023
1 parent cbc34ee commit 011094e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ <h4 id="tilejson-in-sql-comments-1"><a class="header" href="#tilejson-in-sql-com
<p>To modify automatically generated <code>TileJSON</code>, you can add a valid JSON as an SQL comment on the function. Martin will merge function comment into the generated <code>TileJSON</code> using <a href="https://www.rfc-editor.org/rfc/rfc7386">JSON Merge patch</a>. The following example adds <code>attribution</code> and <code>version</code> fields to the <code>TileJSON</code>.</p>
<p><strong>Note:</strong> This example uses <code>EXECUTE</code> to ensure that the comment is a valid JSON (or else PostgreSQL will throw an error). You can use other methods of creating SQL comments.</p>
<pre><code class="language-sql">DO $do$ BEGIN
EXECUTE 'COMMENT ON FUNCTION my_function_name(INT4, INT4, INT4) IS $tj$' || $$
EXECUTE 'COMMENT ON FUNCTION my_function_name IS $tj$' || $$
{
&quot;description&quot;: &quot;my new description&quot;,
&quot;attribution&quot;: &quot;my attribution&quot;,
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sources-pg-functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ <h4 id="tilejson-in-sql-comments"><a class="header" href="#tilejson-in-sql-comme
<p>To modify automatically generated <code>TileJSON</code>, you can add a valid JSON as an SQL comment on the function. Martin will merge function comment into the generated <code>TileJSON</code> using <a href="https://www.rfc-editor.org/rfc/rfc7386">JSON Merge patch</a>. The following example adds <code>attribution</code> and <code>version</code> fields to the <code>TileJSON</code>.</p>
<p><strong>Note:</strong> This example uses <code>EXECUTE</code> to ensure that the comment is a valid JSON (or else PostgreSQL will throw an error). You can use other methods of creating SQL comments.</p>
<pre><code class="language-sql">DO $do$ BEGIN
EXECUTE 'COMMENT ON FUNCTION my_function_name(INT4, INT4, INT4) IS $tj$' || $$
EXECUTE 'COMMENT ON FUNCTION my_function_name IS $tj$' || $$
{
&quot;description&quot;: &quot;my new description&quot;,
&quot;attribution&quot;: &quot;my attribution&quot;,
Expand Down

0 comments on commit 011094e

Please sign in to comment.