43dd4e9234
Signed-off-by: Anton Nesterov <anton@demiurg.io>
14 lines
229 B
Go
14 lines
229 B
Go
package builder
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"l12.xyz/dal/utils"
|
|
)
|
|
|
|
func convertGroup(ctx Dialect, keys []string) string {
|
|
set := utils.Map(keys, ctx.GetColumnName)
|
|
return fmt.Sprintf("GROUP BY %s", strings.Join(set, ", "))
|
|
}
|