MCPcopy Create free account
hub / github.com/go-pg/pg / appendBaseAlias

Method appendBaseAlias

orm/join.go:179–187  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

177}
178
179func (j *join) appendBaseAlias(b []byte) []byte {
180 if j.hasParent() {
181 b = append(b, '"')
182 b = appendAlias(b, j.Parent)
183 b = append(b, '"')
184 return b
185 }
186 return append(b, j.BaseModel.Table().Alias...)
187}
188
189func (j *join) appendSoftDelete(b []byte, flags queryFlag) []byte {
190 b = append(b, '.')

Callers 1

appendHasOneJoinMethod · 0.95

Calls 3

hasParentMethod · 0.95
appendAliasFunction · 0.85
TableMethod · 0.65

Tested by

no test coverage detected