sqltyped
sqltyped copied to clipboard
q() map (_ get "name") - get value from result
I can't seem to get this to compile.
Code:
val q = sql("select * from users") // two columns: "name" and "comment"
println("1 Query: "+q.sql)
println("Returns: ")
q() map (_ get "name") // won't compile
Error message:
value get is not a member of shapeless.::[String with shapeless.labelled.KeyTag[String("name"),String],shapeless.::[String with shapeless.labelled.KeyTag[String("comment"),String],shapeless.HNil]]
