spring-projects / spring-data-r2dbc

Provide support to increase developer productivity in Java when using Reactive Relational Database Connectivity. Uses familiar Spring concepts such as a DatabaseClient for core API usage and lightweight repository style data access.
Apache License 2.0
708 stars 132 forks source link

Add support for Json functions. #679

Open chinamcafee opened 2 years ago

chinamcafee commented 2 years ago

There is a json array field in mysql table, which name is "permissions",I can't use Criteria.where("permissions").in(value) to get results.

I also need dynamic SQL,so use @Modifying @Query("UPDATE person SET firstname = :firstname where lastname = :lastname") cannot satisfied my problem.

Is there any way to have both dynamic SQL ability and JSON_CONTAINS function support when I use spring-data-r2dbc?

schauder commented 2 years ago

Related: https://github.com/spring-projects/spring-data-jdbc/issues/509