 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- type Field
- type ModelInfo
- type ORM
- func (orm *ORM) ConnectMySQLDB(dataSource string)
- func (orm *ORM) Delete(model interface{})
- func (orm ORM) GetModelInfo(model interface{}) (ModelInfo, error)
- func (orm *ORM) Insert(model interface{})
- func (orm *ORM) Query(model interface{}) []reflect.Value
- func (orm *ORM) RawSQLExec(Sql string) sql.Result
- func (orm *ORM) RegistModel(model interface{})
- func (orm *ORM) ResetAndSyncDB(force bool)
- func (orm *ORM) Update(model interface{})
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ORMCache map[int]*ORM
    ORMCache保存ORM
Functions ¶
This section is empty.
Types ¶
type ORM ¶
type ORM struct {
	// contains filtered or unexported fields
}
    ORM 结构
func (*ORM) ConnectMySQLDB ¶
ConnectMtSQLDB 连接mysql数据库
func (ORM) GetModelInfo ¶
GetModelInfo获取已注册模型的信息
 Click to show internal directories. 
   Click to hide internal directories.