Spring Data R2DBC 1.0 M2 and Spring Boot starter released

Releases
Mark Paluch
May 15, 2019
Spring Data R2DBC

On behalf of the community and everyone who contributed, I’m delighted to announce the availability of the second milestone of Spring Data R2DBC 1.0. It is based on the recently released Moore M4 release and R2DBC 0.8.0.M8 release. Please note that Spring Data R2DBC is released outside of the Moore release train and it will be part of the next release train Neumann.

Spring Data R2DBC ships with 32 tickets fixed. The most notable features are:

Support for MySQL by using jasync-sql.
Reactive transaction manager.
Fluent API for insert/update/delete operations.
Coroutine extensions.
Support for custom conversions.
Named parameters that are translated to native bind markers by using Dialect instances.
Support for single-column projections for simple types.
Refactored package structure.

If you use Maven, include the following lines in your pom.xml to use Spring Data R2DBC 1.0 M2 in your project:

org.springframework.data spring-data-r2dbc 1.0.0.M2 io.r2dbc r2dbc-bom Arabba-M8 pom import spring-milestone https://repo.spring.io/milestone

Spring Boot Autoconfiguration and Actuator

Together with this release, I’d also like to announce a milestone release of Spring Boot support for R2DBC 0.1.0.M1. This is an experimental Spring Boot module that provides auto-configuration and actuator support. It is marked as experimental, as this support is likely to get merged into a future Spring Boot release eventually.

Here’s what you get from the experimental Spring Boot support for R2DBC:

URL-based configuration of R2DBC ConnectionFactory (spring.r2dbc.url=rdbc:postgresql://:/).
Embedded database support for H2. H2 is configured for both R2DBC and JDBC access when r2dbc-h2 and spring-jdbc are available.
Connection pool support (spring.r2dbc.pool.initial-size, spring.r2dbc.pool.max-size, spring.r2dbc.validation-query).
Actuator support by exposing a reactive ConnectionFactoryHealthIndicator.
Configuration of R2dbcConnectionManager enabling reactive @Transactional.
Configuration of TransactionalOperator bean.
Configuration of r2dbc-client by exposing a R2dbc bean.
org.springframework.boot.experimental spring-boot-starter-data-r2dbc 0.1.0.M1 org.springframework.boot.experimental spring-boot-actuator-autoconfigure-r2dbc 0.1.0.M1 io.r2dbc r2dbc-postgresql 0.8.0.M8 runtime io.r2dbc r2dbc-pool runtime spring-milestone https://repo.spring.io/milestone

The repository readme and our documentation are the best places to get you started. Also, make sure to check out our Spring WebFlux/R2DBC/H2 example.
Next steps

R2DBC continues to evolve. We expect another series of R2DBC releases in the October timeframe so that we can pick up these in Spring Data R2DBC and eventually ship a release candidate. Our backlog contains a series of refinements around dialect support for an improved extensibility model, and we look forward to allowing for query interception to alter bindings and SQL statements before they are sent to a database.

To round things off, here are links to the changelog, GitHub repository, and docs:

Project Repository: github.com/spring-projects/spring-data-r2dbc
Issue Tracker: github.com/spring-projects/spring-data-r2dbc/issues
Artifacts - Javadoc - Documentation - Changelog

comments powered by Disqus

translate:
翻译:

我很高兴代表社区和所有贡献者,宣布Spring Data R2DBC 1.0的第二个里程碑已面世。 它基于最近发布的Moore M4版本和R2DBC 0.8.0.M8版本。 请注意,Spring Data R2DBC是在Moore发布系列之外发布的,它将成为下一版Neumann发布系列的一部分。

Spring Data R2DBC附带固定的32张票证。 最值得注意的功能是:

 通过使用jasync-sql支持MySQL。
 反应式交易管理器。
 使用Fluent API进行插入/更新/删除操作。
 协程扩展。
 支持自定义转换。
 通过使用Dialect实例转换为本地绑定标记的命名参数。
 支持简单类型的单列投影。
 重构的包结构。

如果使用Maven,请在pom.xml中包含以下几行,以在项目中使用Spring Data R2DBC 1.0 M2:

你可能感兴趣的:(springcloud)