gstorm
gstorm copied to clipboard
Connection properties file
Will be awesome if new Gstorm() can detect if a file with database connetion properties in the classpath and use it. For example gstorm.properties with something like:
database=myDatabase user=myUser password=myPassword ....
Given that Gstorm's primary use case is scripts, it makes sense to load such file from PATH rather than classpath. IMHO, reading conf from either place is source of confusion for lot of project so making it a part of core gstorm may not add a lot of value.
Moreover it would be easier for applications to load the properties from their desired location and pass required properties on to gstorm instead of gstorm attempting to read file directly.
I am keeping this issue open and I will try to spike out some cases and let other users share their opinions on the issue.