MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / isCommonStyle

Method isCommonStyle

pkg/sql2code/parser/parser.go:185–190  ·  view source on GitHub ↗
(isEmbed bool)

Source from the content-addressed store, hash-verified

183}
184
185func (d tmplData) isCommonStyle(isEmbed bool) bool {
186 if d.DBDriver != DBDriverMongodb && !isEmbed && !d.CrudInfo.isIDPrimaryKey() {
187 return true
188 }
189 return false
190}
191
192// ConditionZero type of condition 0, used in dao template code
193func (t tmplField) ConditionZero() string {

Callers 2

makeCodeFunction · 0.95
getModelStructCodeFunction · 0.80

Calls 1

isIDPrimaryKeyMethod · 0.80

Tested by

no test coverage detected