Menu

#43 Allow wildcards in CursorBuilder

3.5.0
closed
None
1
2020-07-31
2020-06-22
Xmair
No

Discussion

  • James Ahlborn

    James Ahlborn - 2020-06-22

    can you please provide some details as to what you are looking for?

     
  • Xmair

    Xmair - 2020-06-24

    Wildcards in SQL: https://www.w3schools.com/sql/sql_wildcards.asp <-- looking for something like that
    Consider that I have a row with the string "John eats Apples" and I'm searching for rows which have "apples" in a specific column, I think wildcards would be the best for this. Please correct me if there is already such a method available.

    PS: I am not using UCanAccess since I am working with fairly large databases and UCanAccess takes quite a few GBs of memory even after using the "memory=false" option with these databases.

     

    Last edit: Xmair 2020-06-24
  • James Ahlborn

    James Ahlborn - 2020-06-24

    So that is not currently built in to jackcess. However, there are facilities for creating your own matching algorithm when doing lookups in cursors. You could very easily create a ColumnMatcher implementation which considered the search value a regex and did a regex matches() test on the given value.

     
    • Xmair

      Xmair - 2020-06-25

      Could I get an example?

       
      • James Ahlborn

        James Ahlborn - 2020-06-27

        So i decided to build in support for pattern matching. i just checked in PatternColumnPredicate which can do what you want. you can see examples of usage in PatternColumnPredicateTest.

        changes will be in the 3.5.0 release.

         

        Last edit: James Ahlborn 2020-06-27
  • James Ahlborn

    James Ahlborn - 2020-06-28
    • status: open --> accepted
    • assigned_to: James Ahlborn
    • Group: Unnassigned --> 3.5.0
     
  • James Ahlborn

    James Ahlborn - 2020-07-31
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB