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

Make a single column non-optional by filtering missing value rows #5

Open
virusdave opened this issue May 12, 2019 · 0 comments
Open

Comments

@virusdave
Copy link
Owner

Will be a test for a more advanced version of this library.

Currently, we can turn a Query[Rep[Option[A], ...] into a Query[Rep[A], ...] pretty easily if we can supply a default A, by doing:
query.map(maybeA => maybeA.getOrElse(defaultA)).

We should be able to lift this to arbitrary product-type rows.
We should also be able to do this without supplying a default A by filtering away all rows that are missing an A.

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

1 participant