Does Gorm.Open with existing connection, still creates a new connection pool?

前端 未结 0 2027
挽巷
挽巷 2020-12-03 23:51

If I do the following:

func New(db *sql.DB) (*gorm.DB, error) {
    gDB, err := gorm.Open(postgres.New(
        postgres.Config{
            Conn: db,
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题