All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scoobie.doobie.doo.ansi.SqlQueryLifter.scala Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package scoobie.doobie.doo.ansi

trait SqlQueryLifter[F[_], B] {

  /**
    * This method is used to lift something of type A, in to the context of B, using something of type F[A].
    *
    * A can be seen as the type of the piece of sql query (a number, a literal, a query fragment)
    * F[A] can be seen as an interpreter for A. So, something that can take A and convert to B
    *
    * B can be seen as the fully interpreted query type.  For example: [[doobie.imports.Fragment]]
    *
    */
  def liftValue[A](a: A, fa: F[A]): B

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy