mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-12 23:01:40 +00:00
19 lines
252 B
Go
19 lines
252 B
Go
|
package sqlite3
|
||
|
|
||
|
import (
|
||
|
"strconv"
|
||
|
"strings"
|
||
|
|
||
|
"github.com/lib/pq"
|
||
|
)
|
||
|
|
||
|
type SqliteList string
|
||
|
|
||
|
func sqliteIn(a pq.Int64Array) string {
|
||
|
var b []string
|
||
|
for _, n := range a {
|
||
|
b = append(b, strconv.FormatInt(n, 10))
|
||
|
}
|
||
|
return strings.Join(b, ",")
|
||
|
}
|