velodrome/transform/influx.go
func tagsToWhere(tags map[string]string) string {
	if len(tags) == 0 {
		return ""
	}

	sortedKeys := []string{}
	for k := range tags {
		sortedKeys = append(sortedKeys, k)
	}
	sort.Strings(sortedKeys)

	conditions := []string{}
	for _, key := range sortedKeys {
		conditions = append(conditions, fmt.Sprintf(`"%s" = '%v'`, key, tags[key]))
	}
	return "WHERE " + strings.Join(conditions, " AND ")
}
func tagsToWhere(tags map[string]string) string {
	if len(tags) == 0 {
		return ""
	}

	sortedKeys := []string{}
	for k := range tags {
		sortedKeys = append(sortedKeys, k)
	}
	sort.Strings(sortedKeys)

	conditions := []string{}
	for _, key := range sortedKeys {
		conditions = append(conditions, fmt.Sprintf(`"%s" = '%v'`, key, tags[key]))
	}
	return "WHERE " + strings.Join(conditions, " AND ")
}
func tagsToWhere ( tags map [ string ] string ) string { if len ( tags ) == 0 { return " " } sortedKeys := [ ] string { } for k := range tags { sortedKeys = append ( sortedKeys , k ) } sort . Strings ( sortedKeys ) conditions := [ ] string { } for _ , key := range sortedKeys { conditions = append ( conditions , fmt . Sprintf ( `"%s" = '%v'` , key , tags [ key ] ) ) } return " " + strings . Join ( conditions , " " ) }
// tagsToWhere creates a where query to match tags element
tagsToWhere creates a where query to match tags element