Documentation ¶
Index ¶
- Constants
- type DBRepo
- func (p *DBRepo) DefaultEngine() *xorm.Engine
- func (p *DBRepo) Engines() map[string]*xorm.Engine
- func (p *DBRepo) IsTransaction() bool
- func (p *DBRepo) NewSession() *xorm.Session
- func (p *DBRepo) Session() *xorm.Session
- func (p *DBRepo) SessionUsing(engineName string) *xorm.Session
- func (p *DBRepo) SetEngines(ormEngines map[string]*xorm.Engine)
- type DBTXCommiter
- func (p *DBTXCommiter) NoTransaction(txFunc interface{}, originRepos ...interface{}) (err error)
- func (p *DBTXCommiter) NoTransactionUsing(txFunc interface{}, name string, originRepos ...interface{}) (err error)
- func (p *DBTXCommiter) Transaction(txFunc interface{}, originRepos ...interface{}) (err error)
- func (p *DBTXCommiter) TransactionUsing(txFunc interface{}, name string, originRepos ...interface{}) (err error)
- type Deriver
- type Inheriter
- type TXFunc
- type TransactionCommiter
Constants ¶
View Source
const ( Logic int = 0 BeforeLogic int = 1 AfterLogic int = 2 OnError int = 3 AfterCommit int = 4 )
View Source
const ( REPO_DEFAULT_ENGINE = "default" REPO_ERR_DEFAULT_ENGINE_NOT_FOUND = "`default` xorm engine not found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBRepo ¶
type DBRepo struct {
// contains filtered or unexported fields
}
func (*DBRepo) DefaultEngine ¶
func (*DBRepo) IsTransaction ¶
func (*DBRepo) NewSession ¶
type DBTXCommiter ¶
type DBTXCommiter struct { }
func (*DBTXCommiter) NoTransaction ¶
func (p *DBTXCommiter) NoTransaction(txFunc interface{}, originRepos ...interface{}) (err error)
func (*DBTXCommiter) NoTransactionUsing ¶
func (p *DBTXCommiter) NoTransactionUsing(txFunc interface{}, name string, originRepos ...interface{}) (err error)
func (*DBTXCommiter) Transaction ¶
func (p *DBTXCommiter) Transaction(txFunc interface{}, originRepos ...interface{}) (err error)
func (*DBTXCommiter) TransactionUsing ¶
func (p *DBTXCommiter) TransactionUsing(txFunc interface{}, name string, originRepos ...interface{}) (err error)
type TransactionCommiter ¶
type TransactionCommiter interface { Transaction(txFunc interface{}, repos ...interface{}) (err error) TransactionUsing(txFunc interface{}, name string, repos ...interface{}) (err error) NoTransaction(txFunc interface{}, repos ...interface{}) (err error) NoTransactionUsing(txFunc interface{}, name string, repos ...interface{}) (err error) }
Click to show internal directories.
Click to hide internal directories.