Documentation ¶
Index ¶
- func New() connector.Committer
- func NewCommitter() connector.Committer
- func NewXormEnginesFromConfig(conf config.Configuration, name string) (map[string]*xorm.Engine, error)
- func NewXormEnginesFromFile(file string) (map[string]*xorm.Engine, 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 TXorm
- func (p *TXorm) NonTX(fn interface{}, repos ...interface{}) errors.ErrCode
- func (p *TXorm) NonTXWithName(fn interface{}, name string, repos ...interface{}) errors.ErrCode
- func (p *TXorm) Session() *xorm.Session
- func (p *TXorm) SetEngines(engines map[string]*xorm.Engine)
- func (p *TXorm) TX(fn interface{}, repos ...interface{}) errors.ErrCode
- func (p *TXorm) TXWithName(fn interface{}, name string, repos ...interface{}) errors.ErrCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewXormEnginesFromConfig ¶
func NewXormEnginesFromConfig(conf config.Configuration, name string) (map[string]*xorm.Engine, error)
NewXormEnginesFromConfig initial xorm 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
type TXorm ¶
type TXorm struct {
// contains filtered or unexported fields
}
TXorm trellis xorm
func (*TXorm) NonTXWithName ¶
NonTXWithName do non transaction function with name of database
func (*TXorm) SetEngines ¶
SetEngines set xorm engines
Click to show internal directories.
Click to hide internal directories.