Clean up dependencies

This commit is contained in:
Jinzhu 2013-10-28 12:46:50 +08:00
parent 592df904e2
commit 5de6416354
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,8 @@
package gorm package gorm
import ( import (
_ "github.com/lib/pq"
"errors" "errors"
"reflect" "reflect"
"strconv" "strconv"

View File

@ -1,9 +1,6 @@
package gorm package gorm
import ( import "database/sql"
"database/sql"
_ "github.com/lib/pq"
)
type DB struct { type DB struct {
Db *sql.DB Db *sql.DB
@ -13,7 +10,6 @@ type DB struct {
func Open(driver, source string) (db DB, err error) { func Open(driver, source string) (db DB, err error) {
db.Db, err = sql.Open(driver, source) db.Db, err = sql.Open(driver, source)
db.Driver = driver db.Driver = driver
// SetMaxIdleConns pools
return return
} }