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

View File

@@ -59,7 +59,7 @@ func TestCompileQuery(t *testing.T) {
}
func BenchmarkCompileNamedQuery(b *testing.B) {
q := []byte("INSERT INTO foo (name, age, first, last) VALUES (:name, :age, :first, :last)")
q := []byte("INSERT INTO cycling.cyclist_name (id, user_uuid, firstname, stars) VALUES (:id, :user_uuid, :firstname, :stars)")
b.ResetTimer()
for i := 0; i < b.N; i++ {
CompileNamedQuery(q)