Documentation ¶
Index ¶
- Constants
- func ConnWrapperTypeLives() []*dot.TypeLives
- func DaoBaseTypeLives() []*dot.TypeLives
- type ConnWrapper
- func (c *ConnWrapper) AfterAllDestroy(dot.Line)
- func (c *ConnWrapper) Create(dot.Line) error
- func (c *ConnWrapper) GetDb() *bun.DB
- func (c *ConnWrapper) RunInNoTx(task func(db bun.IDB) error) error
- func (c *ConnWrapper) RunInTx(task func(db bun.IDB) error) error
- func (c *ConnWrapper) TestConn() bool
- type DaoBase
Constants ¶
View Source
const (
//ConnWrapperTypeID type id
ConnWrapperTypeID = "ffc08507-dd5f-456c-84ea-cdae00b220bf"
)
View Source
const (
//DaoBaseTypeID type id
DaoBaseTypeID = "4d6adee7-7c10-4471-8885-a589688bac93"
)
Variables ¶
This section is empty.
Functions ¶
func ConnWrapperTypeLives ¶
ConnWrapperTypeLives make all type lives
func DaoBaseTypeLives ¶
DaoBaseTypeLives make all type lives
Types ¶
type ConnWrapper ¶
type ConnWrapper struct {
// contains filtered or unexported fields
}
ConnWrapper connect wrapper
func GenerateConnWrapper ¶
func GenerateConnWrapper(conf string) *ConnWrapper
GenerateConnWrapper this func is for test
func GenerateConnWrapperByDb ¶
func GenerateConnWrapperByDb(db *bun.DB) *ConnWrapper
GenerateConnWrapperByDb this func is for test
func (*ConnWrapper) AfterAllDestroy ¶
func (c *ConnWrapper) AfterAllDestroy(dot.Line)
type DaoBase ¶
type DaoBase struct {
Wrapper *ConnWrapper `dot:""`
}
DaoBase doa base
func GenerateDaoBase ¶
GenerateDaoBase this func is for test
func GenerateDaoBaseByDb ¶
GenerateDaoBaseByDb this func is for test
Click to show internal directories.
Click to hide internal directories.