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
import (
_ "github.com/lib/pq"
"errors"
"reflect"
"strconv"

View File

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