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

Function normField

db/sql/sql.go:861–866  ·  view source on GitHub ↗

normField returns field prefixed with schema ID.

(field, schemaID string)

Source from the content-addressed store, hash-verified

859
860//normField returns field prefixed with schema ID.
861func normField(field, schemaID string) string {
862 if strings.Contains(field, ".") {
863 return field
864 }
865 return fmt.Sprintf("%s.%s", schemaID, field)
866}
867
868type selectContext struct {
869 schema *schema.Schema

Callers 2

MakeColumnsFunction · 0.70
normFieldsFunction · 0.70

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected