MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / connect

Method connect

api/pkg/di/container.go:247–249  ·  view source on GitHub ↗
(dsn string, config *gorm.Config)

Source from the content-addressed store, hash-verified

245}
246
247func (container *Container) connect(dsn string, config *gorm.Config) (db *gorm.DB, err error) {
248 return gorm.Open(postgres.Open(dsn), config)
249}
250
251// DedicatedDB creates an instance of gorm.DB if it has not been created already
252func (container *Container) DedicatedDB() (db *gorm.DB) {

Callers 1

DedicatedDBMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected