Documentation ¶
Index ¶
- func NewCommitter() connector.Committer
- func NewGormDBsFromConfig(conf config.Configuration, name string) (map[string]*gorm.DB, error)
- func NewGormDBsFromFile(file string) (map[string]*gorm.DB, error)
- type Committer
- func (p *Committer) NonTX(fn interface{}, repos ...interface{}) errors.ErrCode
- func (p *Committer) NonTXWithName(fn interface{}, name string, repos ...interface{}) errors.ErrCode
- func (p *Committer) TX(fn interface{}, repos ...interface{}) errors.ErrCode
- func (p *Committer) TXWithName(fn interface{}, name string, repos ...interface{}) errors.ErrCode
- type TGorm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormDBsFromConfig ¶
NewGormDBsFromConfig initial gorm engine from config
Types ¶
type Committer ¶
type Committer struct {
Name string
}
Committer gorm committer
func (*Committer) NonTXWithName ¶
NonTXWithName do non transaction function with name of database
Click to show internal directories.
Click to hide internal directories.