Closed rodolphocouto closed 4 years ago
Thanks for the pull request. We currently default in R2DBC to the Duration
ISO-8601 format where durations are parsed. Introducing a specific format parser in each project leads to code duplication across all drivers. While a more user-friendly format is desirable, a parser should be provided ideally by the Java runtime itself.
Thank you for your contribution. That's merged, polished, and backported now.
I need to customize some options, so I added them to PoolingConnectionFactoryProvider:
These options expect a
Duration
type, so I created an utility class to parse them. It only supports the ISO-8601 format for now, but if you want, I can implement support for other formats like DurationStyle from Spring Boot conversion service.