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

Lenses for mapping #5

Open
mausch opened this issue Apr 21, 2011 · 2 comments
Open

Lenses for mapping #5

mausch opened this issue Apr 21, 2011 · 2 comments

Comments

@mausch
Copy link
Owner

mausch commented Apr 21, 2011

Look into using lenses to build composable mappers.

@panesofglass
Copy link
Contributor

That would be fantastic!

@mausch
Copy link
Owner Author

mausch commented Jan 6, 2012

This one's a very vague idea... I just thought it would be interesting to see what happens if a lens get translates to a SQL SELECT and a set to a direct UPDATE.
A lens update would translate to a UPDATE with a function, e.g. update table1 set field = field + 1
I have no idea how a composed lens would translate.
It would also lead to a very chatty 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