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

A few questions #3

Closed
simontegg opened this issue Nov 29, 2018 · 2 comments
Closed

A few questions #3

simontegg opened this issue Nov 29, 2018 · 2 comments

Comments

@simontegg
Copy link
Contributor

Very cool library!
I just have a few questions if you don't mind:

  1. Can you point me to where in the source the join magic happens?
  2. The examples show equality-based queries. Are there plans to support other operators like > < etc?
@farskipper
Copy link
Member

  1. src/q.js line 200-214
    The memo is the bindings of variables to values. It searches the first tuple using the initial bindings, then the next tuple using the bindings found in the previous tuple and so forth. Hope that made sense.

  2. Not currently, but I'm not opposed to adding that. Datomic also allows one to pass in an arbitrary function that filters a value which would also be cool.

@simontegg
Copy link
Contributor Author

Thanks. I'll have a poke around. Passing in an arbitrary filter would be a good API

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

No branches or pull requests

2 participants