MCPcopy
hub / github.com/sqldef/sqldef / formatFKColumnList

Function formatFKColumnList

parser/node.go:1258–1271  ·  view source on GitHub ↗
(buf *nodeBuffer, cols []Ident, period bool)

Source from the content-addressed store, hash-verified

1256}
1257
1258func formatFKColumnList(buf *nodeBuffer, cols []Ident, period bool) {
1259 buf.Printf(" (")
1260 for i, col := range cols {
1261 if i > 0 {
1262 buf.Printf(", ")
1263 }
1264 if period && i == len(cols)-1 {
1265 buf.Printf("period %v", col)
1266 } else {
1267 buf.Printf("%v", col)
1268 }
1269 }
1270 buf.Printf(")")
1271}
1272
1273type Policy struct {
1274 Name Ident

Callers 2

FormatMethod · 0.85
FormatMethod · 0.85

Calls 1

PrintfMethod · 0.65

Tested by

no test coverage detected