(c *ColumnDef)
| 1457 | } |
| 1458 | |
| 1459 | func columnDefSQL(c *ColumnDef) string { |
| 1460 | sb := getBuilder() |
| 1461 | defer putBuilder(sb) |
| 1462 | sb.WriteString(c.Name) |
| 1463 | sb.WriteString(" ") |
| 1464 | sb.WriteString(c.Type) |
| 1465 | for _, con := range c.Constraints { |
| 1466 | con := con // G601: Create local copy to avoid memory aliasing |
| 1467 | sb.WriteString(" ") |
| 1468 | sb.WriteString(columnConstraintSQL(&con)) |
| 1469 | } |
| 1470 | return sb.String() |
| 1471 | } |
| 1472 | |
| 1473 | func columnConstraintSQL(c *ColumnConstraint) string { |
| 1474 | switch c.Type { |
no test coverage detected