You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Go are you using (go version)?
Go 1.8
Hi
Sorry for not raising this during the beta, but I just started testing mysql read only transactions.
It appears that query cancellation in mysql would require a non-trivial design go-sql-driver/mysql#496 which might delay the availability of TxOptions.
Perhaps context and TxOptions should be separated into two interfaces as they appear to be two orthogonal concerns..
Something like:
type ConnBeginTx interface {
BeginTx(opts TxOptions) (Tx, error)
}
type ConnBeginCancelableTx interface {
BeginCancelableTx(ctx context.Context, opts TxOptions) (Tx, error)
}
Regards,
-Itai
The text was updated successfully, but these errors were encountered:
The API is now frozen due to the Go1 compat promise.
Closing because any fix will have to be in the MySQL driver at this point. I'll trust @kardianos to track the MySQL driver progress and file concrete bugs for API additions in database/sql as appropriate. But we can't change or remove things now.
What version of Go are you using (go version)?
Go 1.8
Hi
Sorry for not raising this during the beta, but I just started testing mysql read only transactions.
It appears that query cancellation in mysql would require a non-trivial design go-sql-driver/mysql#496 which might delay the availability of TxOptions.
Perhaps context and TxOptions should be separated into two interfaces as they appear to be two orthogonal concerns..
Something like:
Regards,
-Itai
The text was updated successfully, but these errors were encountered: