nightingale/storage/storage.go

17 lines
221 B
Go
Raw Normal View History

2023-03-09 17:43:51 +08:00
package storage
import (
"github.com/ccfos/nightingale/v6/pkg/ormx"
"gorm.io/gorm"
)
func New(cfg ormx.DBConfig) (*gorm.DB, error) {
db, err := ormx.New(cfg)
if err != nil {
return nil, err
}
return db, nil
}