Skip to content

Query with like operator #1096

Closed
Closed
@lucas-prestes

Description

@lucas-prestes

Hello everyone, I'm just getting started using JaVers, and wanted first of all to thank you all, it is really easy to use and configure.
There is just one feature I miss though, and that is the ability to use the like operator with the Commit Metadata properties.
Currently I have a commit property I wish to use as filter, the ideal scenario would be the user being able to type any part of said property, eg: Let's say there is a commit property 'name' with the value John Doe, in the use case I was building both 'John' and 'Doe' or even 'John D' would return the same data.
For now I would probably end up filtering this after bringing all the rows from the database, but I think it would be really cool( not to mention having way more performance) if this was part of the JQL spec.
From what I saw from the source code one way it could happen would be having a withCommitPropertyLike in the QueryBuilder class, that would render a 'LIKE %:property%' on the final SQL for the JaversSqlRepository, and it could translate to a simple String.contains for the In memory implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions