Specify explicitly that use gocql.Session.NewBatch instead of the deprecated BatchBuilder.

This commit is contained in:
xiang.wang
2020-05-29 18:47:02 +08:00
committed by Michal Jan Matczuk
parent b79c395c11
commit d76ea6c678

View File

@@ -24,7 +24,7 @@ type BatchBuilder struct {
// Batch returns a new BatchBuilder. // Batch returns a new BatchBuilder.
// //
// Deprecated: use session.NewBatch() instead // Deprecated: Please use gocql.Session.NewBatch() instead.
func Batch() *BatchBuilder { func Batch() *BatchBuilder {
return &BatchBuilder{} return &BatchBuilder{}
} }