final case class Fragment[A](parts: List[Either[String, State[Int, String]]], encoder: Encoder[A], origin: Origin) extends (A) => AppliedFragment with Product with Serializable
A composable, embeddable hunk of SQL and typed parameters (common precursor to Command
and
Query
). Although it is possible to construct a Fragment
directly it is more typical to use
the sql
interpolator.
- Source
- Fragment.scala
- Alphabetic
- By Inheritance
- Fragment
- Serializable
- Product
- Equals
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (AppliedFragment) => A): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(a: A): AppliedFragment
- Definition Classes
- Fragment → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def command: Command[A]
- def compose[A](g: (A) => A): (A) => AppliedFragment
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def contramap[B](f: (B) => A): Fragment[B]
- val encoder: Encoder[A]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val origin: Origin
- val parts: List[Either[String, State[Int, String]]]
- def product[B](fb: Fragment[B]): Fragment[(A, B)]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def query[B](decoder: Decoder[B]): Query[A, B]
- lazy val sql: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Fragment → Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def ~[B](fb: Fragment[B]): Fragment[~[A, B]]