batch: extracted AddWithPrefix

This commit is contained in:
Michał Matczuk
2017-08-30 16:26:30 +02:00
parent 11aa459275
commit c4886ff8da
4 changed files with 33 additions and 20 deletions

View File

@@ -90,8 +90,8 @@ func TestExample(t *testing.T) {
i := qb.Insert("gocqlx_test.person").Columns("first_name", "last_name", "email")
stmt, names := qb.Batch().
Add("a.", i).
Add("b.", i).
AddWithPrefix("a", i).
AddWithPrefix("b", i).
ToCql()
batch := struct {