Questions tagged [spring-data-r2dbc]

Spring Data R2DBC is a module of Spring Data based on R2DBC R2DBC stands for Reactive Relational Database Connectivity.

See https://spring.io/projects/spring-data-r2dbc for more information.

412 questions
0
votes
0 answers

Why is Blockhound detecting a blocking call after I added r2dbms to spring?

I added postgres support to my application, but when I try to run the tests, I keep getting a blocking call error from blockhound, and I'm not sure why this is happening. The application it's runs fine, only the tests fail with the blocking call…
0
votes
0 answers

R2DBC and Transient fields

I would like to mark a field in entity as transient, however any annotation is being ignored. @Transient override var aaa: List = mutableListOf(), Getting: Dialect org.springframework.data.r2dbc.dialect.MySqlDialect does not support…
Mejmo
  • 2,363
  • 9
  • 35
  • 54
0
votes
0 answers

Slice/Page method return Reference in R2DBC is invalid?

In a nutShell , when i try to use slice/page as method reuturn value in r2dbc , i encounter the error , below is two difference api reference and corrsponding error stack Flux> Flux> findBySessionId(Long sessionId ,…
Peng
  • 653
  • 8
0
votes
0 answers

Unable to create R2DBC connection factory for mysql through auto configuration unless change scope of another dependency to runtime

java.version=17 spring-boot-starter-data-r2dbc=3.1.1 spring-boot-starter-webflux=3.1.1 I have specified the following in application.properties to be picked up by the auto…
0
votes
1 answer

How do understand r2dbc save

i want konw r2dbc principle, so i debug the code, but i find it work weird. Flux.range(1, 10) .flatMap(id -> repository.save(new Student(id, "lxp"))) .doOnNext(System.out::println) …
coolxp
  • 3
  • 1
0
votes
0 answers

Upgraded from miku to asyncer r2dbc, facing autoconfigure error when compiling

I'm getting the following error after my upgrade when running @SpringBootTest and @AutoConfigureTestDatabase No qualifying bean of type 'org.springframework.r2dbc.core.DatabaseClient' available: expected at least 1 bean which qualifies as autowire…
so_kirin
  • 1
  • 1
0
votes
1 answer

Pagination with filter in Spring Data R2DBC

I have 2 tables in postgres DB: system: id, system_id, system_title file: id, file_name, uploaded_date_time, system_id references id column of system table. ...etc. All the system and file details from DB are shown to the user on home page of the…
0
votes
1 answer

Could not open R2DBC Connection for transaction after resume connection to db

Recently discovered a problem such a problem. I am using a reactive application written in Spring boot 3.x. , r2dbc postgresql, spring webflux At the time of processing the request, the connection to the database is lost and we get an…
skyho
  • 1,438
  • 2
  • 20
  • 47
0
votes
1 answer

Failed to save entity using JPA's R2dbcRepository in a manual ID setting scenario

Problem description: I am using JPA's R2dbcRepository for the storage of entities, but I am having problems with the storage of entities. I manually set the primary key ID of the entity, but the save operation was unsuccessful and no exceptions were…
Noah
  • 1
0
votes
0 answers

Using @modifying with spring r2dbc

As I understand you should use @Modifying whenever you write for example update query with @Query annotation, but I've seen many times people don't use that annotation when using R2dbcRepository or CoroutineCrudRepository, so should I use this…
0
votes
1 answer

Generic way to handle nested objects in Spring Data R2DBC

In my Spring Boot Webflux project, I'm using Spring Data R2DBC for reactive data access. The project involves fetching data from a relational database, where some tables have columns containing JSON data that represent nested objects. My current…
Tobiq
  • 2,489
  • 19
  • 38
0
votes
1 answer

Google Spanner Deadline Exceeded with simplest queries

I'm using GCP+R2DBC in a Spring Boot application. This is a simplified version of my code: public class WidgetDetailsCustomRepositoryImpl implements WidgetDetailsCustomRepository { private final WidgetDetailsRepository…
0
votes
0 answers

Wait for execution for R2DBC DatabaseClient

I am new at R2DBC , sorry for a basic question. My business scenario is that , I have one kafka consumer and after reading the data from a topic, I have to insert data in to a postgress table using R2DBC DatabaseClient. I am using a simple insert…
0
votes
1 answer

DB fields are not properly mapped to java objects when using reactive postgres r2dbc

I have a Spring Boot application with reactive stack (WebFlux). I work with PostgreSQL database using r2dbc driver. DB contains 2 records with all values present, but when I query I get empty fields. Below you can see the service response. [ { …
0
votes
1 answer

how to keep transaction when using `withContext` to setup a new security context?

In the following demo we create a new ReactiveSecurityContextHolder to run an operation as a different user (in our actual code this is a bit more complex how we create the authentication, but for the demo the following shows the same problem as we…
Stuck
  • 11,225
  • 11
  • 59
  • 104