-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for r2dbc-spi's Optional Interface 'LifeCycle' #64
Comments
Hi @jchrys, Do these interfaces need to be implemented anywhere or do they just need to be created? I think MySqlConnection has to implement Lifecycle. I don't think Wrapped needs to be implemented anywhere, it's up to the end user. Closeable might have to be implemented by MySqlConnectionFactory etc. |
You're absolutely right. There is no need to implement the Wrapped interface for MySqlConnection and MySqlConnectionFactory, as they are not wrappers. If, however, we come across a class that wraps an r2dbc-spi implementation, it would be advisable to implement Wrapped in that case. |
The Which means |
Hmmm, I noticed that the |
Forget it, it turns out that This command not being supported in 5.6.x and below, it will also cause all prepared statements to be cleared. |
While implementing r2dbc-spi, the interface 'LifeCycle' is optional and not mandated by the specification.
However, we believe it is important to provide support for this interface as it can benefit minority use cases.
You can refer to this link for more information: https://r2dbc.io/spec/1.0.0.RELEASE/spec/html/#lifecycle.
The text was updated successfully, but these errors were encountered: