Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestDialect, _ = dialect.GetDialect("mysql")
Functions ¶
Types ¶
type Account ¶
type Account struct { ID int `haorm:"PRIMARY KEY"` UserName string UserAccount string Password string CreateDate time.Time UpdateDate time.Time }
func (*Account) AfterQuery ¶
func (ac *Account) AfterQuery(s *haosession.Session) error
func (*Account) BeforeInsert ¶
func (ac *Account) BeforeInsert(s *haosession.Session) error
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
自定义orm的主要入口,用于配置各种数据库
func (*Engine) NewSession ¶
func (*Engine) Transation ¶
Click to show internal directories.
Click to hide internal directories.