(tableValue []string)
| 180 | } |
| 181 | |
| 182 | func parseTableList(tableValue []string) pattern { |
| 183 | tablePattern := make(pattern) |
| 184 | for _, v := range tableValue { |
| 185 | fields := strings.FieldsFunc(v, func(r rune) bool { |
| 186 | return r == ',' |
| 187 | }) |
| 188 | for _, f := range fields { |
| 189 | tablePattern[f] = struct{}{} |
| 190 | } |
| 191 | } |
| 192 | return tablePattern |
| 193 | } |
| 194 | |
| 195 | // PostgreSqlDataSource generates model code from datasource |
| 196 | func PostgreSqlDataSource(_ *cobra.Command, _ []string) error { |
no outgoing calls
searching dependent graphs…