shared/generate/db/lex.go
func stmtCodeVar(entity string, kind string, filters ...string) string {
	name := fmt.Sprintf("%s%s", entity, lex.Camel(kind))

	if len(filters) > 0 {
		name += "By"
		name += strings.Join(filters, "And")
	}

	return name
}
func stmtCodeVar(entity string, kind string, filters ...string) string {
	name := fmt.Sprintf("%s%s", entity, lex.Camel(kind))

	if len(filters) > 0 {
		name += "By"
		name += strings.Join(filters, "And")
	}

	return name
}
func stmtCodeVar ( entity string , kind string , filters ... string ) string { name := fmt . Sprintf ( " " , entity , lex . Camel ( kind ) ) if len ( filters ) > 0 { name += " " name += strings . Join ( filters , " " ) } return name }
// Return the name of the global variable holding the registration code for
// the given kind of statement aganst the given entity.
Return the name of the global variable holding the registration code for the given kind of statement aganst the given entity .