
scoobie.doobie.doo.ansi.SqlQueryLifter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scoobie-contrib-ansi-sql_2.12 Show documentation
Show all versions of scoobie-contrib-ansi-sql_2.12 Show documentation
Provides an ANSI-SQL interpreter for use with the Scoobie AST.
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