Test blank connection options

This commit is contained in:
Dan Sosedoff
2014-12-17 21:56:15 -06:00
parent 09ad707d94
commit 58ee238db4
3 changed files with 12 additions and 8 deletions

View File

@@ -35,6 +35,10 @@ func formatConnectionUrl(opts Options) (string, error) {
return url, nil
}
func connectionSettingsBlank(opts Options) bool {
return opts.Host == "" && opts.User == "" && opts.DbName == "" && opts.Url == ""
}
func buildConnectionString(opts Options) (string, error) {
if opts.Url != "" {
return formatConnectionUrl(opts)