MCPcopy
hub / github.com/zeromicro/go-zero / parseTableList

Function parseTableList

tools/goctl/model/sql/command/command.go:182–193  ·  view source on GitHub ↗
(tableValue []string)

Source from the content-addressed store, hash-verified

180}
181
182func 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
196func PostgreSqlDataSource(_ *cobra.Command, _ []string) error {

Callers 3

Test_parseTableListFunction · 0.85
MySqlDataSourceFunction · 0.85
PostgreSqlDataSourceFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_parseTableListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…