Add db-tx-end config option

This commit is contained in:
laurenceisla
2021-07-21 19:49:41 -05:00
committed by GitHub
parent a7cddd8ece
commit f5c5094d7d
3 changed files with 26 additions and 1 deletions
+22 -1
View File
@@ -39,6 +39,7 @@ db-anon-role String Y
db-pool Int 10
db-pool-timeout Int 10
db-extra-search-path String public
db-tx-end String commit
server-host String !4
server-port Int 3000
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``.
.. _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
@@ -317,4 +339,3 @@ raw-media-types
raw-media-types="image/png, text/xml"