Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality for matching strings by portion of a string (db agnostic pattern matching mechanizm)? #40

Open
akrsmv opened this issue May 17, 2016 · 0 comments

Comments

@akrsmv
Copy link

akrsmv commented May 17, 2016

I was thinking also for a pattern matching implementation in some of the new versions. I mean - would it be possible to extend the seneca-standard-query (or is it there already, and i missed it?) with a functionality like this:

entity.list$({stringProp:/some_portion_of_a_value/, ...}

I understand that implementing it with a regex would be very hard having in mind specific implementations of the db stores but, probably an implementation as simple as indexOf(pattern) > -1

It is a common functionality for all db stores.

I think that existing standard-query + count$ (feature request) + pattern marchers (this request) would already cover >90% of the web application needs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants