Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ccl/sqlproxyccl: add helpers related to connection migration
Informs cockroachdb#76000. Extracted from cockroachdb#76805. This commit adds helpers related to connection migration. This includes support for retrieving the transfer state through SHOW TRANSFER STATE, as well as deserializing the session through crdb_internal.deserialize_session. We also introduce a new error marker for errors that denote connections which are recoverable. In our case, we convert SQL errors from first column of the SHOW TRANSFER STATE query (e.g. serialization errors) to Go errors, and mark them with the errConnRecoverableSentinel sentinel. Release note: None
- Loading branch information