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

db.value contains #76

Open
sneshvadvdl opened this issue Mar 13, 2025 · 0 comments
Open

db.value contains #76

sneshvadvdl opened this issue Mar 13, 2025 · 0 comments

Comments

@sneshvadvdl
Copy link

Hello, we were trying to using scalasql on a new project and I have the following. Using the example from the tutorial below, oracle expects the where clause to be WHERE (city0.name IN (?, ?, ?)). Is there a way i can get this to work?

thanks

val query = City.select
.filter(c => db.values(Seq("Singapore", "Kuala Lumpur", "Jakarta")).contains(c.name))
.map(_.countryCode)

db.renderSql(query) ==> """
SELECT city0.countrycode AS res
FROM city city0
WHERE (city0.name IN (VALUES (?), (?), (?)))
"""

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