add breaking changes
This commit is contained in:
committed by
Steve Chavez
parent
dec1e03a0e
commit
c56108b8a9
@@ -415,42 +415,3 @@ You can call overloaded functions with different number of arguments.
|
||||
.. important::
|
||||
|
||||
Overloaded functions with the same argument names but different types are not supported.
|
||||
|
||||
.. _bulk_call:
|
||||
|
||||
Bulk Call
|
||||
---------
|
||||
|
||||
It's possible to call a function in a bulk way, analogously to :ref:`bulk_insert`. To do this, you need to add the
|
||||
``Prefer: params=multiple-objects`` header to your request.
|
||||
|
||||
.. tabs::
|
||||
|
||||
.. code-tab:: http
|
||||
|
||||
POST /rpc/add_them HTTP/1.1
|
||||
Content-Type: text/csv
|
||||
Prefer: params=multiple-objects
|
||||
|
||||
a,b
|
||||
1,2
|
||||
3,4
|
||||
|
||||
.. code-tab:: bash Curl
|
||||
|
||||
curl "http://localhost:3000/rpc/add_them" \
|
||||
-X POST -H "Content-Type: text/csv" \
|
||||
-H "Prefer: params=multiple-objects" \
|
||||
--data-binary @- << EOF
|
||||
a,b
|
||||
1,2
|
||||
3,4
|
||||
EOF
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
[ 3, 7 ]
|
||||
|
||||
If you have large payloads to process, it's preferable you instead use a function with an :ref:`array parameter <s_procs_array>` or JSON parameter, as this will be more efficient.
|
||||
|
||||
It's also possible to :ref:`Specify Columns <specify_columns>` on functions calls.
|
||||
|
||||
Reference in New Issue
Block a user