Add db-tx-end config option
This commit is contained in:
+22
-1
@@ -39,6 +39,7 @@ db-anon-role String Y
|
|||||||
db-pool Int 10
|
db-pool Int 10
|
||||||
db-pool-timeout Int 10
|
db-pool-timeout Int 10
|
||||||
db-extra-search-path String public
|
db-extra-search-path String public
|
||||||
|
db-tx-end String commit
|
||||||
server-host String !4
|
server-host String !4
|
||||||
server-port Int 3000
|
server-port Int 3000
|
||||||
server-unix-socket String
|
server-unix-socket String
|
||||||
@@ -133,6 +134,27 @@ db-extra-search-path
|
|||||||
|
|
||||||
Multiple schemas can be added in a comma-separated string, e.g. ``public, extensions``.
|
Multiple schemas can be added in a comma-separated string, e.g. ``public, extensions``.
|
||||||
|
|
||||||
|
.. _db-tx-end:
|
||||||
|
|
||||||
|
db-tx-end
|
||||||
|
---------
|
||||||
|
|
||||||
|
Specifies how to terminate the database transactions.
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
# The transaction is always committed
|
||||||
|
db-tx-end = "commit"
|
||||||
|
|
||||||
|
# The transaction is committed unless a "Prefer: tx=rollback" header is sent
|
||||||
|
db-tx-end = "commit-allow-override"
|
||||||
|
|
||||||
|
# The transaction is always rolled back
|
||||||
|
db-tx-end = "rollback"
|
||||||
|
|
||||||
|
# The transaction is rolled back unless a "Prefer: tx=commit" header is sent
|
||||||
|
db-tx-end = "rollback-allow-override"
|
||||||
|
|
||||||
.. _server-host:
|
.. _server-host:
|
||||||
|
|
||||||
server-host
|
server-host
|
||||||
@@ -317,4 +339,3 @@ raw-media-types
|
|||||||
|
|
||||||
raw-media-types="image/png, text/xml"
|
raw-media-types="image/png, text/xml"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ todo
|
|||||||
todos
|
todos
|
||||||
Tsingson
|
Tsingson
|
||||||
tsquery
|
tsquery
|
||||||
|
tx
|
||||||
TypeScript
|
TypeScript
|
||||||
UI
|
UI
|
||||||
ui
|
ui
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ Added
|
|||||||
* Config option for logging level. See :ref:`log-level`.
|
* Config option for logging level. See :ref:`log-level`.
|
||||||
|br| -- `@steve-chavez <https://github.com/steve-chavez>`_
|
|br| -- `@steve-chavez <https://github.com/steve-chavez>`_
|
||||||
|
|
||||||
|
* Config option for specifying how to terminate the transactions (allowing rollbacks, useful for testing). See :ref:`db-tx-end`.
|
||||||
|
|br| -- `@wolfgangwalther <https://github.com/wolfgangwalther>`_
|
||||||
|
|
||||||
* Documentation improvements
|
* Documentation improvements
|
||||||
|
|
||||||
+ Added the :ref:`OPTIONS requests <options_requests>` section.
|
+ Added the :ref:`OPTIONS requests <options_requests>` section.
|
||||||
|
|||||||
Reference in New Issue
Block a user