Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllModelStructures ¶
func AllModelStructures() []interface{}
AllModelStructures get all model structures
Types ¶
type ExampleModel ¶
type ExampleModel struct { ID int `xorm:"'id' Int pk autoincr" json:"id"` Name string `xorm:"'Name' Varchar(64) index" json:"name"` UpdateTime time.Time `xorm:"'updateTime' DateTime index" json:"updateTime"` behaviors.ModifyingBehavior `xorm:"extends"` rdbms.Datasource `xorm:"-" datasource:"default"` }
ExampleModel model
func (*ExampleModel) Fetch ¶
func (m *ExampleModel) Fetch() (bool, error)
Fetch retrieve one record by self condition
func (*ExampleModel) TableName ¶
func (m *ExampleModel) TableName() string
TableName returns table name in database
Click to show internal directories.
Click to hide internal directories.