Function
formatFKColumnList
(buf *nodeBuffer, cols []Ident, period bool)
Source from the content-addressed store, hash-verified
| 1256 | } |
| 1257 | |
| 1258 | func 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 | |
| 1273 | type Policy struct { |
| 1274 | Name Ident |
Tested by
no test coverage detected