package schema type Schema interface { TableName(string) string MapField(string, string) (string, bool) BuildJoins(map[string]bool, string) []string FilterColumn(string) (string, string, bool) } func Get(datasource string, main string) Schema { if datasource == "ymt" || main == "order_info" { return ymtSchema{} } return marketingSchema{} }