This projects shows some sample usage of the work-in-progress R2DBC support for Spring Data.
-
A PostgreSQL database server running on port 5432, a database instance named
postgreswith a userpostgresand an empty password.
-
InfrastructureConfiguration- sets up a R2DBCConnectionFactorybased on the R2DBC Postgres driver (r2dbc-postgresql), aDatabaseClientand aR2dbcRepositoryFactoryto eventually create aCustomerRepository. -
CustomerRepository- a standard Spring Data reactive CRUD repository exposing query methods using manually defined queries -
CustomerRepositoryIntegrationTests- to initialize the database with some setup SQL and the inserting and readingCustomerinstances.