Documentation ¶
Index ¶
- func FromTrans(ctx context.Context) (interface{}, bool)
- func FromTransLock(ctx context.Context) bool
- func NewTrans(ctx context.Context, trans interface{}) context.Context
- func NewTransLock(ctx context.Context) context.Context
- type DAO
- func (repo *DAO) ExecTrans(ctx context.Context, fn TransFunc) error
- func (repo *DAO) GetDB(ctx context.Context) *xorm.Session
- func (repo *DAO) Save(ctx context.Context, bean interface{}) error
- func (repo *DAO) SaveBatch(ctx context.Context, bean interface{}) error
- func (repo *DAO) UpdateByID(ctx context.Context, bean interface{}, id interface{}, cols ...string) error
- type TransFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.