Skip to content

Command-Line Tool for Managing SQL Connection Strings.

License

Notifications You must be signed in to change notification settings

jpy-git/usql_conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usql_conf

Command-Line Tool for Managing SQL Connection Strings.

Install

pip install git+https://github.com/jpy-git/usql_conf.git

Usage

Create .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_test

The intended usage is to be passed to usql to connect to the desired database:

usql $(usql_conf pg_test)

About

Command-Line Tool for Managing SQL Connection Strings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages