Versions in this module Expand all Collapse all v1 v1.0.5 Nov 8, 2022 Changes in this version + const PackageName + var ErrRecordNotFound = gorm.ErrRecordNotFound + func BuildQuery(conds Conds) (sql string, binds []interface{}) + func DefaultConfig() *config + type Association = gorm.Association + type Component = gorm.DB + func WithContext(ctx context.Context, db *Component) *Component + type Cond struct + Op string + Val interface{} + type Conds map[string]interface + type Container struct + func DefaultContainer() *Container + func Load(key string) *Container + func (c *Container) Build(options ...Option) *Component + type DB gorm.DB + type Dialector = gorm.Dialector + type Field = schema.Field + type Handler func(*gorm.DB) + type Interceptor func(string, *manager.DSN, string, *config, *elog.Component) func(next Handler) Handler + type Logger = logger.Interface + type Model = gorm.Model + type NamingStrategy = schema.NamingStrategy + type Option func(c *Container) + func WithDSN(dsn string) Option + func WithDSNParser(parser manager.DSNParser) Option + func WithInterceptor(is ...Interceptor) Option + type Processor interface + Get func(name string) func(*gorm.DB) + Replace func(name string, handler func(*gorm.DB)) error