db

package
v0.3.67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2025 License: LGPL-2.1 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectDB added in v0.3.39

func InjectDB(svcCtx service.Context, target any) error

func InjectDBRV added in v0.3.39

func InjectDBRV(svcCtx service.Context, target reflect.Value) error

func MigrateDB added in v0.3.39

func MigrateDB(services ...any) error

func MongoDB

func MongoDB(svcCtx service.Context, tag string) *mongo.Client

func RedisDB added in v0.3.39

func RedisDB(svcCtx service.Context, tag string) *redis.Client

func SQLDB added in v0.3.39

func SQLDB(svcCtx service.Context, tag string) *gorm.DB

Types

type IMigrateDB added in v0.3.39

type IMigrateDB interface {
	MigrateDB() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL