how to set connection string such as sessionVariables=transaction_isolation='READ-COMMITTED' using sqlx in Golang

558 views Asked by At

hello we are trying to set some session variables when connecting to the mysql DB during our golang server startup, we are using https://github.com/jmoiron/sqlx the API for connection is https://godoc.org/github.com/jmoiron/sqlx#Open and https://godoc.org/github.com/jmoiron/sqlx#Connect I am not sure where to pass extra connection strings such as session variables. Does anyone know?

0

There are 0 answers