typo.dsl.DeleteParams.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of typo-dsl-zio-jdbc_2.13 Show documentation
Show all versions of typo-dsl-zio-jdbc_2.13 Show documentation
Typed postgres boilerplate generation
The newest version!
package typo.dsl
case class DeleteParams[Fields](where: List[Fields => SqlExpr[Boolean, Required]]) {
def where(v: Fields => SqlExpr[Boolean, Required]): DeleteParams[Fields] =
copy(where = where :+ v)
}
object DeleteParams {
def empty[Fields]: DeleteParams[Fields] =
DeleteParams[Fields](List.empty)
}