
typo.dsl.internal.mkFragment.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.internal
import doobie.util.fragment.Fragment
object mkFragment {
implicit class FragmentOps[I[t] <: Iterable[t]](fragments: I[Fragment]) {
def mkFragment(sep: Fragment): Fragment = {
fragments.reduceOption((a, b) => a ++ sep ++ b).getOrElse(Fragment.empty)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy