MCPcopy Create free account
hub / github.com/DoNewsCode/core / Factory

Struct Factory

otgorm/factory.go:10–12  ·  view source on GitHub ↗

Factory is the *di.Factory that creates *gorm.DB under a specific configuration entry.

Source from the content-addressed store, hash-verified

8// Factory is the *di.Factory that creates *gorm.DB under a specific
9// configuration entry.
10type Factory struct {
11 *di.Factory
12}
13
14// Make creates *gorm.DB under a specific configuration entry.
15func (d Factory) Make(name string) (*gorm.DB, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected