summaryrefslogtreecommitdiffstats
path: root/changelog.rst
diff options
context:
space:
mode:
authorDamien Baty <damien@damienbaty.com>2023-03-01 17:49:32 +0100
committerDamien Baty <damien@damienbaty.com>2023-03-08 09:42:43 +0100
commitf4dc7969414f5c03b0e0b38062c34d5ab556379e (patch)
treeba90a53f6f627269daab2e7840d8da85b6652ed4 /changelog.rst
parent8ef5392fd1f50591aaaa0a6ea204f7545edceddd (diff)
Add config option to require a transaction for destructive statements
When this option is on, any statement that is deemed destructive (through the use of the `destructive_warning` config option) will not be executed unless a transaction has been started.
Diffstat (limited to 'changelog.rst')
-rw-r--r--changelog.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/changelog.rst b/changelog.rst
index a8b268b0..af4d6db4 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -4,6 +4,8 @@ Upcoming
Features:
---------
+* New `destructive_statements_require_transaction` config option to refuse to execute a
+ destructive SQL statement if outside a transaction. This option is off by default.
* Changed the `destructive_warning` config to be a list of commands that are considered
destructive. This would allow you to be warned on `create`, `grant`, or `insert` queries.
* Destructive warnings will now include the alias dsn connection string name if provided (-D option).