Fix #160, reorder reloading note for functions
This commit is contained in:
committed by
Steve Chávez
parent
cf220c5a91
commit
7052446abf
@@ -569,6 +569,10 @@ For instance, assume we have created this function in the database.
|
|||||||
SELECT a + b;
|
SELECT a + b;
|
||||||
$$ LANGUAGE SQL IMMUTABLE STRICT;
|
$$ LANGUAGE SQL IMMUTABLE STRICT;
|
||||||
|
|
||||||
|
.. important::
|
||||||
|
|
||||||
|
Whenever you create or change a function you must refresh PostgREST's schema. See the section :ref:`schema_reloading`.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Procedures must be declared with named parameters, procedures declared like:
|
Procedures must be declared with named parameters, procedures declared like:
|
||||||
@@ -633,10 +637,6 @@ PostgREST will detect if the function is scalar or table-valued and will shape t
|
|||||||
{ "title": "Blade Runner 2049", "rating": 8.1}
|
{ "title": "Blade Runner 2049", "rating": 8.1}
|
||||||
]
|
]
|
||||||
|
|
||||||
.. important::
|
|
||||||
|
|
||||||
Whenever the function definition changes you must refresh PostgREST's schema for this to work properly. See the section :ref:`schema_reloading`.
|
|
||||||
|
|
||||||
A function response can be shaped using the same filters as the ones used for tables and views:
|
A function response can be shaped using the same filters as the ones used for tables and views:
|
||||||
|
|
||||||
.. code:: http
|
.. code:: http
|
||||||
|
|||||||
Reference in New Issue
Block a user