3
0

Properly support CONCAT in Postgres and SQLite

This commit is contained in:
Denis Arh
2022-10-11 07:38:10 +02:00
committed by Tomaž Jerman
parent 2bd455cab7
commit ef12ab9aaa
3 changed files with 31 additions and 0 deletions

12
pkg/cast2/slice.go Normal file
View File

@@ -0,0 +1,12 @@
package cast2
// Anys converts any kinds of values to a []any slice
func Anys[C any](in ...C) (out []any) {
out = make([]any, len(in))
for i := range in {
out[i] = in[i]
}
return
}