schemaspy icon indicating copy to clipboard operation
schemaspy copied to clipboard

Allow the connectionString to specified in full on command-line

Open npetzall opened this issue 8 years ago • 0 comments

Expected Behavior

I would want to be able to specify the connectionString in full. As an example hive jdbc urls: jdbc:hive2://:/dbName;sess_var_list?hive_conf_list#hive_var_list Theres a lot going on in that connectionString(url)

Current Behavior

Multiple properties files might be created to allow different type of connectionSpecs. Due to some parsing done by Config class some of the arguments for the connectionSpec might get destroyed and it would be a hassle to add every permutation of possible arguments.

Possible Solution

I think that when we have moved to jCommander this might be a viable option. Might be the new way in 7.0, you specify -t dbType and dbType only includes SQL overrides. In most cases -dp is required. So `java -jar -t [dbType] -url [connectionUrl] -u [user] -p [pass] -o [output] -dp [driverPath] i would pose that we should add Class-Path: driver/* to jar manifest so that -dp could be removed from command line.

npetzall avatar Feb 16 '18 20:02 npetzall