mbucc / shmig

Database migration tool written in BASH.
BSD 3-Clause "New" or "Revised" License
458 stars 49 forks source link

Add ability to run sql in the target database #31

Open asabil opened 7 years ago

asabil commented 7 years ago

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

mbucc commented 7 years ago

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

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

asabil commented 7 years ago

yes exactly

mbucc commented 7 years ago

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

asabil commented 7 years ago

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