Slick 2.0 - update two or more columns
问题 I know I can update two columns in Slick 2.0 with: val q = for (user <- Users if user.id === id) yield (user.name, user.city) q.update((newName, newCity)) But I've seen something like this working as well which is IMO much nicer syntax: Users.filter(_.id === id).map(u => u.name ~ u.city).update(newName, newCity) This gives me the following error: value ~ is not a member of shortcut.db.Tables.profile.simple.Column I have imported PostgresDriver.simple._ and I just can't figure out why. I also