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
|
package gorm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
_ "github.com/lib/pq"
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
6
main.go
6
main.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue