Command-Line Tool for Managing SQL Connection Strings.
pip install git+https://github.com/jpy-git/usql_conf.gitCreate .usql_conf file in home directory and add config names with associated connection strings in .ini format. e.g.
[pg_test]
connection_string = pg://test_user:password123@localhost/test_database?sslmode=disable
Then obtain connection string from .usql_conf by running:
usql_conf pg_testThe intended usage is to be passed to usql to connect to the desired database:
usql $(usql_conf pg_test)