Documentation ¶
Index ¶
- type Field
- type Method
- type Model
- func (*Model) AddToString(cols []string) string
- func (m *Model) InsertWithReplaceParameter() string
- func (m *Model) QuotedAllCol() []string
- func (md *Model) QuotedColOfSql(m Method) string
- func (m *Model) QuotedExecArgsWithParameter(col []string, flag, owner string) string
- func (md *Model) QuotedGoNameOfSqlParam(Sql string) []string
- func (m *Model) QuotedRelationship() map[string]string
- func (m *Model) QuotedTableName() string
- func (m *Model) WrapData(method Method) map[string]interface{}
- type Option
- type Parameter
- type PkgInfor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct { FuncName string SqlType string SqlSentence string Params []Parameter Results []string }
func (Method) QuotedColOfSqlParams ¶
func (Method) QuotedFunc ¶
type Model ¶
type Model struct { TableName string GoName string Fields []Field SelfPkgName string PkgName string ExtralImport string Methods []Method }
Model 模型定义
func (*Model) AddToString ¶
func (*Model) InsertWithReplaceParameter ¶
func (*Model) QuotedAllCol ¶
func (*Model) QuotedColOfSql ¶
func (*Model) QuotedExecArgsWithParameter ¶
func (*Model) QuotedGoNameOfSqlParam ¶
func (*Model) QuotedRelationship ¶
func (*Model) QuotedTableName ¶
Click to show internal directories.
Click to hide internal directories.