qb: select
This commit is contained in:
18
qb/qb.go
18
qb/qb.go
@@ -1,18 +0,0 @@
|
||||
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('?')
|
||||
}
|
||||
Reference in New Issue
Block a user