pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Password protecting destructive queries?

Open dbousamra opened this issue 5 years ago • 3 comments

Description

I would like to extend the functionality in confirm_destructive_query to allow for asking of a password. I feel like the Y/N is great, but I am super paranoid, and occasionally I will autopilot through the Y/N prompt.

dbousamra avatar Sep 07 '20 02:09 dbousamra

Interesting. Would you like to take a stab at a PR for that?

j-bennet avatar Sep 07 '20 04:09 j-bennet

Sure.

Another feature I would be interested in is the ability to specify a background color per alias_dsn. I don't know I would add config for something like this, but I think it could be a useful feature.

dbousamra avatar Sep 07 '20 09:09 dbousamra

@dbousamra about the background color -- since v3.0 you can change the color of the prompt with --prompt, so it's somewhat possible to have different colors per db with a script.

quezak avatar Nov 13 '20 22:11 quezak