Fragment

doobie.util.fragment.Fragment
See theFragment companion class
object Fragment

Attributes

Companion
class
Source
fragment.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Fragment.type

Members list

Type members

Classlikes

trait Internals

Internals of a Fragment, available for diagnostic purposes. Monoidal structure is not preserved for the elements of this object.

Internals of a Fragment, available for diagnostic purposes. Monoidal structure is not preserved for the elements of this object.

Attributes

Source
fragment.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(sql: String, elems: List[Elem], pos: Option[Pos]): Fragment

Construct a statement fragment with the given SQL string, which must contain sufficient ? placeholders to accommodate the given list of interpolated elements. This is normally accomplished via the string interpolator rather than direct construction.

Construct a statement fragment with the given SQL string, which must contain sufficient ? placeholders to accommodate the given list of interpolated elements. This is normally accomplished via the string interpolator rather than direct construction.

Attributes

Source
fragment.scala
def const(sql: String, pos: Option[Pos]): Fragment

Construct a statement fragment with no interpolated values and a trailing space; the passed SQL string must not contain ? placeholders.

Construct a statement fragment with no interpolated values and a trailing space; the passed SQL string must not contain ? placeholders.

Attributes

Source
fragment.scala
def const0(sql: String, pos: Option[Pos]): Fragment

Construct a statement fragment with no interpolated values and no trailing space; the passed SQL string must not contain ? placeholders.

Construct a statement fragment with no interpolated values and no trailing space; the passed SQL string must not contain ? placeholders.

Attributes

Source
fragment.scala

Concrete fields

The empty fragment. Adding this to another fragment has no effect.

The empty fragment. Adding this to another fragment has no effect.

Attributes

Source
fragment.scala

Implicits

Implicits

implicit val FragmentMonoid: Monoid[Fragment]

Statement fragments form a monoid.

Statement fragments form a monoid.

Attributes

Source
fragment.scala