mirror of https://github.com/go-gorm/gorm.git
Clean up dependencies
This commit is contained in:
parent
592df904e2
commit
5de6416354
|
@ -1,6 +1,8 @@
|
|||
package gorm
|
||||
|
||||
import (
|
||||
_ "github.com/lib/pq"
|
||||
|
||||
"errors"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
|
6
main.go
6
main.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue