Trait/Object

doobie.util.query

Query

Related Docs: object Query | package query

Permalink

trait Query[A, B] extends AnyRef

A query parameterized by some input type A yielding values of type B. We define here the core operations that are needed. Additional operations are provided on Query0 which is the residual query after applying an A. This is the type constructed by the sql interpolator.

Self Type
Query[A, B]
Source
query.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Query
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type I

    Permalink
    Attributes
    protected
  2. abstract type O

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract val ai: (A) ⇒ I

    Permalink
    Attributes
    protected
  2. implicit abstract val ic: Composite[I]

    Permalink
    Attributes
    protected
  3. abstract val logHandler: LogHandler

    Permalink
    Attributes
    protected
  4. abstract val ob: (O) ⇒ B

    Permalink
    Attributes
    protected
  5. implicit abstract val oc: Composite[O]

    Permalink
    Attributes
    protected
  6. abstract def pos: Option[Pos]

    Permalink

    An optional Pos indicating the source location where this Query was constructed.

    An optional Pos indicating the source location where this Query was constructed. This is used only for diagnostic purposes.

  7. abstract def sql: String

    Permalink

    The SQL string.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accumulate[F[_]](a: A)(implicit arg0: MonadCombine[F]): ConnectionIO[F[B]]

    Permalink

    Apply the argument a to construct a program in ConnectionIO yielding an F[B] accumulated via MonadPlus append.

    Apply the argument a to construct a program in ConnectionIO yielding an F[B] accumulated via MonadPlus append. This method is more general but less efficient than to.

  5. def analysis: ConnectionIO[Analysis]

    Permalink

    Program to construct an analysis of this query's SQL statement and asserted parameter and column types.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contramap[C](f: (C) ⇒ A): Query[C, B]

    Permalink

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def list(a: A): ConnectionIO[List[B]]

    Permalink

    Convenience method; equivalent to to[List]

  16. def map[C](f: (B) ⇒ C): Query[A, C]

    Permalink

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def nel(a: A): ConnectionIO[NonEmptyList[B]]

    Permalink

    Apply the argument a to construct a program in ConnectionIO yielding an NonEmptyList[B] and raising an exception if the resultset does not have at least one row.

    Apply the argument a to construct a program in ConnectionIO yielding an NonEmptyList[B] and raising an exception if the resultset does not have at least one row. See also unique.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def option(a: A): ConnectionIO[Option[B]]

    Permalink

    Apply the argument a to construct a program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row.

    Apply the argument a to construct a program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row. See also unique.

  22. def outputAnalysis: ConnectionIO[Analysis]

    Permalink

    Program to construct an analysis of this query's SQL statement and result set column types.

  23. def process(a: A): Stream[ConnectionIO, B]

    Permalink

    Apply the argument a to construct a Process with DefaultChunkSize, with effect type ConnectionIO yielding elements of type B.

  24. def processWithChunkSize(a: A, chunkSize: Int): Stream[ConnectionIO, B]

    Permalink

    Apply the argument a to construct a Process with the given chunking factor, with effect type ConnectionIO yielding elements of type B.

  25. def stream(a: A): Stream[ConnectionIO, B]

    Permalink

    FS2 Friendly Alias for process.

  26. def streamWithChunkSize(a: A, chunkSize: Int): Stream[ConnectionIO, B]

    Permalink

    FS2 Friendly Alias for processWithChunkSize.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def to[F[_]](a: A)(implicit cbf: CanBuildFrom[Nothing, B, F[B]]): ConnectionIO[F[B]]

    Permalink

    Apply the argument a to construct a program in ConnectionIO yielding an F[B] accumulated via the provided CanBuildFrom.

    Apply the argument a to construct a program in ConnectionIO yielding an F[B] accumulated via the provided CanBuildFrom. This is the fastest way to accumulate a collection.

  29. def toFragment(a: A): Fragment

    Permalink

    Turn this Query into a Fragment, given an argument.

  30. def toQuery0(a: A): Query0[B]

    Permalink

    Apply an argument, yielding a residual Query0.

  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def unique(a: A): ConnectionIO[B]

    Permalink

    Apply the argument a to construct a program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row.

    Apply the argument a to construct a program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row. See also option.

  33. def vector(a: A): ConnectionIO[Vector[B]]

    Permalink

    Convenience method; equivalent to to[Vector]

  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Diagnostics

Results

Transformations

Ungrouped