(fields []*PGField)
| 443 | } |
| 444 | |
| 445 | func printPGFields(fields []*PGField) { |
| 446 | fmt.Printf("%-20v %-20v %-20v %-20v %-20v %-20v %-20v\n", "Name", "Type", "Length", "Lengthvar", "Notnull", "Comment", "IsPrimaryKey") |
| 447 | for _, p := range fields { |
| 448 | fmt.Printf("%-20v %-20v %-20v %-20v %-20v %-20v %-20v\n", p.Name, p.Type, p.Length, p.Lengthvar, p.Notnull, p.Comment, p.IsPrimaryKey) |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | func Test_getMongodbTableFields(t *testing.T) { |
| 453 | fields := []*MgoField{ |
no test coverage detected