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

Function makeAliasTableName

db/sql/sql.go:760–762  ·  view source on GitHub ↗
(tableName string, property schema.Property)

Source from the content-addressed store, hash-verified

758}
759
760func makeAliasTableName(tableName string, property schema.Property) string {
761 return fmt.Sprintf("%s__%s", tableName, property.RelationProperty)
762}
763
764// MakeColumns generates an array that has Gohan style column names
765func MakeColumns(s *schema.Schema, tableName string, fields []string, join bool) []string {

Callers 3

MakeColumnsFunction · 0.85
makeJoinFunction · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected