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

Abstract Value Members

  1. abstract val logHandler: doobie.LogHandler

    Permalink
    Attributes
    protected
  2. 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.

  3. implicit abstract val read: Read[B]

    Permalink
    Attributes
    protected
  4. abstract def sql: String

    Permalink

    The SQL string.

  5. implicit abstract val write: Write[A]

    Permalink
    Attributes
    protected

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: Alternative[F]): doobie.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: doobie.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 map[C](f: (B) ⇒ C): Query[A, C]

    Permalink

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

    Permalink
    Definition Classes
    AnyRef
  17. def nel(a: A): doobie.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.

  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def option(a: A): doobie.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.

  21. def outputAnalysis: doobie.ConnectionIO[Analysis]

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def to[F[_]](a: A)(implicit cbf: CanBuildFrom[Nothing, B, F[B]]): doobie.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.

  26. def toFragment(a: A): doobie.Fragment

    Permalink

    Turn this Query into a Fragment, given an argument.

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

    Permalink

    Apply an argument, yielding a residual Query0.

    Apply an argument, yielding a residual Query0.

    Annotations
    @SuppressWarnings()
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def unique(a: A): doobie.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.

  30. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Diagnostics

Results

Transformations

Ungrouped