zeroshade commented on PR #43781:
URL: https://github.com/apache/arrow/pull/43781#issuecomment-2305463970

   @rshura Since we provide `NewPreparedStatement` which takes a client and 
handle, could you just easily construct the interface that you're requesting in 
a generic way?
   
   ```go
   type HandleGetter interface {
            GetPreparedStatementHandle() []byte
   }
   
   func NewPreparedStatementFromCmd(client *Client, handle HandleGetter) 
*PreparedStatement { 
       return flightsql.NewPreparedStatement(client, 
handle.GetPreparedStatementHandle())
   }
   ```
   
   I started adding what you requested, but it ended up feeling redundant to be 
in the flightsql lib directly.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to