
typo.dsl.SqlFunction2.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of typo-dsl-doobie_3 Show documentation
Show all versions of typo-dsl-doobie_3 Show documentation
Typed postgres boilerplate generation
package typo.dsl
case class SqlFunction2[I1, I2, O](name: String, eval: (I1, I2) => O)
object SqlFunction2 {
def strpos[T](implicit B: Bijection[T, String]) =
new SqlFunction2[T, String, Int]("strpos", (i1, i2) => B.underlying(i1).indexOf(i2))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy