Fragment

doobie.util.fragment.Fragment
See theFragment companion object
final class Fragment(val sql: String, val elems: Chain[Elem], val pos: Option[Pos])

A statement fragment, which may include interpolated values. Fragments can be composed by concatenation, which maintains the correct offset and mappings for interpolated values. Once constructed a Fragment is opaque; it has no externally observable properties. Fragments are eventually used to construct a Query0 or Update0.

Attributes

Companion
object
Source
fragment.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def ++(fb: Fragment): Fragment

Concatenate this fragment with another, yielding a larger fragment.

Concatenate this fragment with another, yielding a larger fragment.

Attributes

Source
fragment.scala
def execWith[B](fa: PreparedStatementIO[B]): ConnectionIO[B]

Construct a program in ConnectionIO that constructs and prepares a PreparedStatement, with further handling delegated to the provided program.

Construct a program in ConnectionIO that constructs and prepares a PreparedStatement, with further handling delegated to the provided program.

Attributes

Source
fragment.scala

Internals of this fragment.

Internals of this fragment.

Attributes

Source
fragment.scala
def query[B](implicit R: Read[B]): Query0[B]

Construct a Query0 from this fragment, with asserted row type B.

Construct a Query0 from this fragment, with asserted row type B.

Attributes

Source
fragment.scala
def stripMargin(marginChar: Char): Fragment

Attributes

Source
fragment.scala

Attributes

Source
fragment.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
fragment.scala

Construct an Update0 from this fragment.

Construct an Update0 from this fragment.

Attributes

Source
fragment.scala