From 6933a91e6fe3f4a790260b2e22378844f4fba298 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net>
Date: Wed, 7 Oct 2015 06:15:17 -0500
Subject: [PATCH] Removing db.Settings from example.

---
 postgresql/_example/main.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/postgresql/_example/main.go b/postgresql/_example/main.go
index cd5d5ed9..4ff87cba 100644
--- a/postgresql/_example/main.go
+++ b/postgresql/_example/main.go
@@ -6,13 +6,13 @@ import (
 	"os"
 	"time"
 
-	"upper.io/db"              // Imports the main db package.
-	_ "upper.io/db/postgresql" // Imports the postgresql adapter.
+	"upper.io/db"            // Imports the main db package.
+	"upper.io/db/postgresql" // Imports the postgresql adapter.
 )
 
-var settings = db.Settings{
+var settings = postgresql.ConnectionURL{
 	Database: `upperio_tests`, // Database name.
-	Host:     `127.0.0.1`,
+	Address:  db.ParseAddress(`127.0.0.1`),
 	User:     `upperio_tests`,  // Database username.
 	Password: `upperio_secret`, // Database password.
 }
@@ -27,8 +27,8 @@ type Birthday struct {
 
 func main() {
 
-	if os.Getenv("TEST_HOST") != "" {
-		settings.Host = os.Getenv("TEST_HOST")
+	if addr := os.Getenv("TEST_HOST"); addr != "" {
+		settings.Address = db.ParseAddress(addr)
 	}
 
 	// Attemping to establish a connection to the database.
-- 
GitLab