DBSchemaLoader should prompt for password if parameter is missing
DBSchemaLoader assumes default passwords if the parameters are missing - it would be better if it would prompt for a password to avoid entering it in plain text in commandline.
#4776: command-line parser, handling both single-letter parameter (space separated value) and full-name parameter (equal-sign separated value), sensitive data is correctly retrieved; support for interactive mode in which user is prompted for all non-provided parameters;
#4776: remove per-database scripts and redirect everything to directly to DBSchemaLoader
#2 Updated by Wojciech Kapcia almost 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Current parameter parser was… lacking and quite rough. So in the end I've created rather generic one:
tigase.util.ui.console.ParameterParser (which we can use in different projects) and then integrated it into DBSchemaLoader. For the sake of simplicity I've also left only two
scripts/db-create.* scripts (@sh@ for *nix and
cmd for Windows) and redirected all parameter handling to
DBSchemaLoader (so instead of maintaining it up-to-date in couple of places we have only single one.