dal/pkg/builder/convert_group.go
2024-08-20 21:10:21 +02:00

14 lines
245 B
Go

package builder
import (
"fmt"
"strings"
"github.com/nesterow/dal/pkg/utils"
)
func convertGroup(ctx Dialect, keys []string) string {
set := utils.Map(keys, ctx.GetColumnName)
return fmt.Sprintf("GROUP BY %s", strings.Join(set, ", "))
}