Swtich to use new connection string builder function

This commit is contained in:
Dan Sosedoff
2014-12-17 21:59:26 -06:00
parent 58ee238db4
commit 7859870646
2 changed files with 5 additions and 54 deletions

View File

@@ -23,12 +23,16 @@ type Result struct {
}
func NewClient() (*Client, error) {
str := getConnectionString()
str, err := buildConnectionString(options)
if options.Debug {
fmt.Println("Creating a new client with: %s", str)
}
if err != nil {
return nil, err
}
db, err := sqlx.Open("postgres", str)
if err != nil {