How is the <> method resolved on a tuple by Slick

Viewed 1793

Linked from this question

I came across Slick's documentation and found it mandates a def * method in the definition of a table to get a mapped projection. So the line looks like this

def * = (name, id.?).<>(User.tupled,User.unapply)

Slick example here

I see the <> method is invoked on a tuple - in this case a Tuple2. The method is defined on the case class ShapedValue in Slick's code. How do I find out the implicit method that is doing the lookup?

Here are my imports:

import scala.concurrent.Await
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.Duration
import slick.driver.H2Driver.api._
import slick.lifted.ShapedValue
import slick.lifted.ProvenShape
1 Answers
Related