cherryORM

package
v1.1.29 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component added in v1.1.1

type Component struct {
	cfacade.Component
	// contains filtered or unexported fields
}

func NewComponent added in v1.1.4

func NewComponent() *Component

func (*Component) GetDb added in v1.1.1

func (s *Component) GetDb(id string) *gorm.DB

func (*Component) GetDbMap added in v1.1.5

func (s *Component) GetDbMap(groupId string) (map[string]*gorm.DB, bool)

func (*Component) GetHashDb added in v1.1.5

func (s *Component) GetHashDb(groupId string, hashFn HashDb) (*gorm.DB, bool)

func (*Component) Init added in v1.1.1

func (s *Component) Init()

func (*Component) Name added in v1.1.1

func (s *Component) Name() string

type HashDb added in v1.1.5

type HashDb func(dbMaps map[string]*gorm.DB) string

HashDb hash by group id

Jump to

Keyboard shortcuts

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