jameshartig commented on code in PR #1868:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1868#discussion_r2011155701


##########
session.go:
##########
@@ -727,33 +720,36 @@ func (s *Session) routingKeyInfo(ctx context.Context, 
stmt string) (*routingKeyI
        return routingKeyInfo, nil
 }
 
-func (b *Batch) execute(ctx context.Context, conn *Conn) *Iter {
-       return conn.executeBatch(ctx, b)
-}
-
 // Exec executes a batch operation and returns nil if successful
 // otherwise an error is returned describing the failure.
 func (b *Batch) Exec() error {
        iter := b.session.executeBatch(b)
        return iter.Close()
 }
 
+// Iter executes a batch operation and returns an Iter object
+// that can be used to access properties related to the execution like 
Iter.Attempts and Iter.Latency
+func (b *Batch) Iter() *Iter {
+       return b.session.executeBatch(b)

Review Comment:
   Hmm, I see what you mean but I don't think we can lock them into one or 
another if we want it to be reusable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to