You can use the `Info` property in the Connector [1]. To create a new connector, use the `NewConnector()` method. Once the connector is created, pass it to `sql.OpenDB()`[2] to use it.

[1] https://pkg.go.dev/github.com/apache/calcite-avatica-go/v5#Connector
[2] https://pkg.go.dev/database/sql#OpenDB

On 2/08/2024 9:28 pm, Satya Kommula wrote:
Hi Team,
I'm currently using the calcite-avatica-go client and I'm having trouble 
setting custom connection parameters with the Go client. Is there a way to send 
custom connection parameters using the Go client?
I have been able to achieve this using the Java JDBC client.
For example, I need to send the following parameters to my server with the Go 
client:http://localhost:8080?enablePartitionPruning=true&UseDynamicFiltering=true
When I'm sending the above Go client filtering params, it's not getting sent to 
the server.
Thank you.

Reply via email to