shmig icon indicating copy to clipboard operation
shmig copied to clipboard

Add ability to run sql in the target database

Open asabil opened this issue 7 years ago • 4 comments

It would be great if shmig allowed easy running of sql in the target database according to its config.

asabil avatar Sep 01 '17 12:09 asabil

I'm not 100% sure what you mean. Something like this?

shmig -c my.conf "insert into mytbl (id, name) values (1, 'one');"

mbucc avatar Sep 02 '17 00:09 mbucc

yes exactly

asabil avatar Sep 02 '17 08:09 asabil

Why is this better than using the database's command-line client?

mbucc avatar Sep 02 '17 19:09 mbucc

You can then reuse the database arguments abstractions and config loading built into shmig

asabil avatar Sep 18 '17 07:09 asabil