Files
gocqlx/qb/qb.go
2017-07-27 15:08:09 +02:00

19 lines
290 B
Go

package qb
import (
"bytes"
)
// placeholders returns a string with count ? placeholders joined with commas.
func placeholders(cql *bytes.Buffer, count int) {
if count < 1 {
return
}
for i := 0; i < count-1; i++ {
cql.WriteByte('?')
cql.WriteByte(',')
}
cql.WriteByte('?')
}