MCPcopy Create free account
hub / github.com/cloudwan/gohan / normFields

Function normFields

db/sql/sql.go:851–858  ·  view source on GitHub ↗

normFields runs normFields on all the fields.

(fields []string, s *schema.Schema)

Source from the content-addressed store, hash-verified

849
850//normFields runs normFields on all the fields.
851func normFields(fields []string, s *schema.Schema) []string {
852 if fields != nil {
853 for i, f := range fields {
854 fields[i] = normField(f, s.ID)
855 }
856 }
857 return fields
858}
859
860//normField returns field prefixed with schema ID.
861func normField(field, schemaID string) string {

Callers 2

listContextHelperFunction · 0.85
lockListContextHelperFunction · 0.85

Calls 1

normFieldFunction · 0.70

Tested by

no test coverage detected