Documentation
¶
Index ¶
- func InjectDB(svcCtx service.Context, target any) error
- func InjectDBRV(svcCtx service.Context, target reflect.Value) error
- func MigrateDB(services ...any) error
- func MongoDB(svcCtx service.Context, tag string) *mongo.Client
- func RedisDB(svcCtx service.Context, tag string) *redis.Client
- func SQLDB(svcCtx service.Context, tag string) *gorm.DB
- type IMigrateDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectDBRV ¶ added in v0.3.39
Types ¶
type IMigrateDB ¶ added in v0.3.39
type IMigrateDB interface {
MigrateDB() error
}
Click to show internal directories.
Click to hide internal directories.