Trait/Object

doobie.util.query

Query0

Related Docs: object Query0 | package query

Permalink

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]]

    Permalink

    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]

    Permalink

    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]

    Permalink

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

    Permalink

    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]]

    Permalink

    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]

    Permalink

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

  7. 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.

  8. abstract def processWithChunkSize(n: Int): Stream[doobie.ConnectionIO, B]

    Permalink

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

  9. abstract def sql: String

    Permalink

    The SQL string.

  10. abstract def to[F[_]](implicit cbf: CanBuildFrom[Nothing, B, F[B]]): doobie.ConnectionIO[F[B]]

    Permalink

    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 toFragment: doobie.Fragment

    Permalink

    Turn this Query0 into a Fragment.

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

    Permalink

    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

    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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. def list: doobie.ConnectionIO[List[B]]

    Permalink

    Convenience method; equivalent to to[List]

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. def process: Stream[doobie.ConnectionIO, B]

    Permalink

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

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

    Permalink

    Convenience method; equivalent to process.sink(f)

  18. def stream: Stream[doobie.ConnectionIO, B]

    Permalink

    FS2 Friendly Alias for process.

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

    Permalink

    FS2 Friendly Alias for processWithChunkSize.

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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def vector: doobie.ConnectionIO[Vector[B]]

    Permalink

    Convenience method; equivalent to to[Vector]

  23. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Diagnostics

Results

Transformations

Ungrouped