Packages

  • package root
    Definition Classes
    root
  • package doobie

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core.

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core. A typical starting set of imports would be something like this.

    import cats.implicits._
    import doobie._, doobie.implicits._
    Definition Classes
    root
    See also

    The doobie microsite for much more information.

  • package util

    Collection of modules for typeclasses and other helpful bits.

    Collection of modules for typeclasses and other helpful bits.

    Definition Classes
    doobie
  • object query

    Module defining queries parameterized by input and output types.

    Module defining queries parameterized by input and output types.

    Definition Classes
    util
  • Query
  • Query0

trait Query0[B] extends AnyRef

An abstract query closed over its input arguments and yielding values of type B, without a specified disposition. Methods provided on Query0 allow the query to be interpreted as a stream or program in CollectionIO.

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

Abstract Value Members

  1. abstract def accumulate[F[_]](implicit arg0: Alternative[F]): doobie.ConnectionIO[F[B]]

    Program in ConnectionIO yielding an F[B] accumulated via MonadPlus append.

    Program in ConnectionIO yielding an F[B] accumulated via MonadPlus append. This method is more general but less efficient than to.

  2. abstract def analysis: doobie.ConnectionIO[Analysis]

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

  3. abstract def map[C](f: (B) ⇒ C): Query0[C]

  4. abstract def nel: doobie.ConnectionIO[NonEmptyList[B]]

    Program in ConnectionIO yielding a NonEmptyList[B] and raising an exception if the resultset does not have at least one row.

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

  5. abstract def option: doobie.ConnectionIO[Option[B]]

    Program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row.

    Program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row. See also unique.

  6. abstract def outputAnalysis: doobie.ConnectionIO[Analysis]

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

  7. abstract def pos: Option[Pos]

    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.

  8. abstract def sql: String

    The SQL string.

  9. abstract def streamWithChunkSize(n: Int): Stream[doobie.ConnectionIO, B]

    Stream with given chunk factor, with effect type ConnectionIO yielding elements of type B.

  10. abstract def to[F[_]](implicit f: FactoryCompat[B, F[B]]): doobie.ConnectionIO[F[B]]

    Program in ConnectionIO yielding an F[B] accumulated via the provided CanBuildFrom.

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

  11. abstract def unique: doobie.ConnectionIO[B]

    Program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row.

    Program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row. See also option.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def stream: Stream[doobie.ConnectionIO, B]

    Stream with default chunk factor, with effect type ConnectionIO yielding elements of type B.

  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def sink(f: (B) ⇒ doobie.ConnectionIO[Unit]): doobie.ConnectionIO[Unit]

    Convenience method, equivalent to stream.evalMap(f).compile.drain.

    Convenience method, equivalent to stream.evalMap(f).compile.drain.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) use .stream.evalMap(f).compile.drain

Inherited from AnyRef

Inherited from Any

Diagnostics

Results

Transformations

Ungrouped