qb: update, delete and performance improvements

This commit is contained in:
Michał Matczuk
2017-07-27 09:48:33 +02:00
parent 5db5de8822
commit 69dad13e4b
10 changed files with 486 additions and 15 deletions

14
qb/mock.go Normal file
View File

@@ -0,0 +1,14 @@
package qb
import "bytes"
type mockExpr struct {
cql string
names []string
}
func (m mockExpr) WriteCql(cql *bytes.Buffer) (names []string) {
cql.WriteString(m.cql)
names = m.names
return
}