(queries []Query)
| 354 | } |
| 355 | |
| 356 | func checkNoTimesForMySQLCopyFrom(queries []Query) error { |
| 357 | for _, q := range queries { |
| 358 | if q.Cmd != metadata.CmdCopyFrom { |
| 359 | continue |
| 360 | } |
| 361 | for _, f := range q.Arg.CopyFromMySQLFields() { |
| 362 | if f.Type == "time.Time" { |
| 363 | return fmt.Errorf("values with a timezone are not yet supported") |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | return nil |
| 368 | } |
| 369 | |
| 370 | func filterUnusedStructs(enums []Enum, structs []Struct, queries []Query) ([]Enum, []Struct) { |
| 371 | keepTypes := make(map[string]struct{}) |
no test coverage detected