Versions in this module Expand all Collapse all v1 v1.0.3 Jan 6, 2022 Changes in this version + var TestDialect = dialect.GetDialect("mysql") + func DbTest() + type Account struct + CreateDate time.Time + ID int + Password string + UpdateDate time.Time + UserAccount string + UserName string + func (ac *Account) AfterQuery(s *haosession.Session) error + func (ac *Account) BeforeInsert(s *haosession.Session) error + type Engine struct + func NewEngine(driver, source string, idleNum, maxConnect int, ...) (e *Engine, err error) + func (enginde *Engine) NewSession() *session.Session + func (engine *Engine) Close() + func (engine *Engine) Transation(f TxFunc) (result interface{}, err error) + type Test struct + Age int + Name string + type Test1 struct + Age int + Name string + type TxFunc func(*session.Session) (interface{}, error) v1.0.2 Jan 6, 2022 v1.0.1 Jan 6, 2022