A simple tool to execute a psql query on multiple databases.
You can find the latest version here.
Usage: java -jar build/libs/psql-multi-all.jar [options]
Options:
--exclude, -e
Exclude databases with the following regex pattern
--force, -f
Force to continue when executed query fails on a database
Default: false
--help
Prints this help
Default: true
--host, -h
Hostname including port
Default: 127.0.0.1:5432
--include, -i
Include databases with the following regex pattern
--no-ssl-verify
Verify SSL certificate
Default: true
--pass, -p
Password to authenticate
Default: postgres
* --query, -q
Command which should be executed
--results, -r
When using a SELECT statement as the command results will be printed to
console
Default: false
--ssl
Use a SSL connection to the database server
Default: false
--user, -u
User to authenticate
Default: postgres
Simply use grade.
gradle build