Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Provide a mechanism for Query.where to match on values in the database without first having to fetch them #454

Open
joeconwaystk opened this issue Jun 11, 2018 · 0 comments

Comments

@joeconwaystk
Copy link
Member

In a simple case, this may be: SELECT * FROM t where t.column = t.otherColumn. There are two scenarios to consider: the RHS is a value from the table(s) being queried, or the RHS is a value provided by the result of some other query (e.g., SELECT * FROM t where t.column = (SELECT u.id FROM u WHERE <some condition>)).

This may require two different APIs. In the former case, staying as close to the current property selector syntax (where((o) => o.property)) is preferred. The latter case requires more research.

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

No branches or pull requests

1 participant