Swtich to use new connection string builder function
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user