19 lines
290 B
Go
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('?')
|
|
}
|