spring-data-relational icon indicating copy to clipboard operation
spring-data-relational copied to clipboard

Add the ability to add a constant filter to all queries.

Open NotEdibleSalt opened this issue 2 years ago • 3 comments

How to add unified filter conditions? For example, in the case of tombstony, how to uniformly filter the data that has been identified as deleted during query

NotEdibleSalt avatar Jun 30 '23 06:06 NotEdibleSalt

I'm not sure if I understand what you mean. Are you looking for a way to apply a filtering condition to all queries? Like a is_deleted=0?

If so the answer is: Spring Data JDBC does not currently support such a feature. But I'll consider this a feature request if you confirm my understanding. If my understanding is wrong, please clarify.

schauder avatar Jun 30 '23 07:06 schauder

I'm not sure if I understand what you mean. Are you looking for a way to apply a filtering condition to all queries? Like a is_deleted=0?

If so the answer is: Spring Data JDBC does not currently support such a feature. But I'll consider this a feature request if you confirm my understanding. If my understanding is wrong, please clarify.

Yes, you understand correctly.

NotEdibleSalt avatar Jul 03 '23 03:07 NotEdibleSalt