tpope / vim-dadbod

dadbod.vim: Modern database interface for Vim
https://www.vim.org/scripts/script.php?script_id=5665
3.75k stars 132 forks source link

[Feature Request] support filter stderr message #121

Closed hiberabyss closed 1 year ago

hiberabyss commented 1 year ago

When run sql query, there will be following error message in the output:

mysql: [Warning] Using a password on the command line interface can be insecure.

Is it possible to have option to filter such stderr message?

tpope commented 1 year ago

'errorformat' can do that.

hiberabyss commented 1 year ago

The errorformat should only work on quickfix like window? What I want is to get rid of the stderrr message in dbout.

tpope commented 1 year ago

There's no built-in support for this. I supposed you could use a wrapper script, with something like mysql "$@" 2>&1|grep -v '^mysql: \[Warning' or whatever to filter it yourself.