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

Describe bind #125

Open
d6y opened this issue Aug 8, 2016 · 1 comment
Open

Describe bind #125

d6y opened this issue Aug 8, 2016 · 1 comment
Milestone

Comments

@d6y
Copy link
Contributor

d6y commented Aug 8, 2016

Sometimes you see code examples containing v.bind. What is bind, when would you use it?

e.g., q0 = as.filter(_.id === 42.bind).length

@d6y d6y added this to the Icebox milestone Aug 8, 2016
@d6y
Copy link
Contributor Author

d6y commented Aug 8, 2016

scala> messages.filter(_.id === 1L).result.statements
res10: Iterable[String] = List(select "sender", "content", "id" from "message" where "id" = 1)

scala> messages.filter(_.id === 1L.bind).result.statements
res11: Iterable[String] = List(select "sender", "content", "id" from "message" where "id" = ?)

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