Vim.db for interacting with databases

I haven’t tried this yet, but it looks interesting.

“DB is a Vim plugin for interacting with databases.”

I tried it and it looks useful. You can write a SQL query in the editor, highlight it, and run a command to connect to the database. The results open in a new buffer.

Thanks for this solution. I also have the same case.

1 Like

I haven’t used it for anything useful yet, but it seems like a good alternative to things like this:

-- mysql/mariadb
SELECT *
FROM table_name
INTO OUTFILE="/tmp/data.csv"; -- dump the query into a CSV file