From 65e594e2d627477855cef929b6e4f2f3b0edca25 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 15 Mar 2014 09:05:08 +0800 Subject: [PATCH] Fix README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3dfdd11..8a904a3e 100644 --- a/README.md +++ b/README.md @@ -97,9 +97,9 @@ import _ "github.com/lib/pq" // import _ "github.com/go-sql-driver/mysql" // import _ "github.com/mattn/go-sqlite3" -db, err := Open("postgres", "user=gorm dbname=gorm sslmode=disable") -// db, err = Open("mysql", "gorm:gorm@/gorm?charset=utf8&parseTime=True") -// db, err = Open("sqlite3", "/tmp/gorm.db") +db, err := gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") +// db, err = gorm.Open("mysql", "gorm:gorm@/gorm?charset=utf8&parseTime=True") +// db, err = gorm.Open("sqlite3", "/tmp/gorm.db") // Get database connection handle [*sql.DB](http://golang.org/pkg/database/sql/#DB) d := db.DB()