Closed mirromutth closed 6 months ago
Motivation:
Session states are now dispersed across MySqlSimpleConnection and ConnectionContext, make these states to be managed in a single object.
MySqlSimpleConnection
ConnectionContext
Modification:
InitFlow
setSessionVariable
setSessionVariables
QueryFlow
StringUtils
ConnectionConext
PrepareCache
lockWaitTimeout
ConnectionState
Result:
Refactored initialization and management of session states
I just had a medical check-up; I'll review PRs tomorrow.
Great change 👍
Motivation:
Session states are now dispersed across
MySqlSimpleConnection
andConnectionContext
, make these states to be managed in a single object.Modification:
InitFlow
for initialize handshake/login and session statessetSessionVariable
andsetSessionVariables
toQueryFlow
StringUtils
ConnectionConext
, e.g.PrepareCache
,lockWaitTimeout
, etc.ConnectionState
, because all states should be used byConnectionContext
Result:
Refactored initialization and management of session states