add ContextBatch api to create batch with context (#326)

This commit is contained in:
Dmitry Kropachev authored and GitHub committed 2025-06-11 06:36:46 -04:00
1 parent efee4798d6
commit b0b3ded8da
2 files changed
+18 -3

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ type BatchBuilder struct {
// - gocql.Batch prepares the included statements separately, which is more efficient.
// In contrast, gocqlx.qb.BatchBuilder, which is based on gocql.Query, prepares the whole batch statements as one ordinary query.
//
// Deprecated: Please use gocql.Session.NewBatch() instead.
// Deprecated: please use gocql.Session.Batch() instead.
func Batch() *BatchBuilder {
return &BatchBuilder{}
}