Skip to content

q() map (_ get "name") - get value from result #19

@steffenlaursen

Description

@steffenlaursen

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]]

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions