diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2021-02-12 21:09:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 21:09:38 -0800 |
commit | a3287c4ab2cea5ba5bef495e1174b12c3b2ae084 (patch) | |
tree | 2f9ebfe6f6312ad6c7b37ee8b17233ff72d1ed2f /pgcli/pgclirc | |
parent | 762fb4b8da98fdf6792e6c5586060ed37224f894 (diff) |
Finer control over destructive warning. (#1242)
* Finer control over destructive warning.
* Review feedback.
* Changelog.
* Run integration tests with --warn=moderate.
* Fix typo.
* Black.
Diffstat (limited to 'pgcli/pgclirc')
-rw-r--r-- | pgcli/pgclirc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pgcli/pgclirc b/pgcli/pgclirc index d9a8c2b4..15c10f5e 100644 --- a/pgcli/pgclirc +++ b/pgcli/pgclirc @@ -23,9 +23,13 @@ multi_line = False multi_line_mode = psql # Destructive warning mode will alert you before executing a sql statement -# that may cause harm to the database such as "drop table", "drop database" -# or "shutdown". -destructive_warning = True +# that may cause harm to the database such as "drop table", "drop database", +# "shutdown", "delete", or "update". +# Possible values: +# "all" - warn on data definition statements, server actions such as SHUTDOWN, DELETE or UPDATE +# "moderate" - skip warning on UPDATE statements, except for unconditional updates +# "off" - skip all warnings +destructive_warning = all # Enables expand mode, which is similar to `\x` in psql. expand = False |