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
- Grouped
- Alphabetic
- By Inheritance
- Query0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def accumulate[F[_]](implicit arg0: Alternative[F]): doobie.ConnectionIO[F[B]]
Program in
ConnectionIO
yielding anF[B]
accumulated viaMonadPlus
append.Program in
ConnectionIO
yielding anF[B]
accumulated viaMonadPlus
append. This method is more general but less efficient thanto
. - abstract def analysis: doobie.ConnectionIO[Analysis]
Program to construct an analysis of this query's SQL statement and asserted parameter and column types.
- abstract def map[C](f: (B) ⇒ C): Query0[C]
- abstract def nel: doobie.ConnectionIO[NonEmptyList[B]]
Program in
ConnectionIO
yielding aNonEmptyList[B]
and raising an exception if the resultset does not have at least one row.Program in
ConnectionIO
yielding aNonEmptyList[B]
and raising an exception if the resultset does not have at least one row. See alsounique
. - abstract def option: doobie.ConnectionIO[Option[B]]
Program in
ConnectionIO
yielding an optionalB
and raising an exception if the resultset has more than one row.Program in
ConnectionIO
yielding an optionalB
and raising an exception if the resultset has more than one row. See alsounique
. - abstract def outputAnalysis: doobie.ConnectionIO[Analysis]
Program to construct an analysis of this query's SQL statement and result set column types.
- abstract def pos: Option[Pos]
An optional
Pos
indicating the source location where thisQuery
was constructed.An optional
Pos
indicating the source location where thisQuery
was constructed. This is used only for diagnostic purposes. - abstract def sql: String
The SQL string.
- abstract def streamWithChunkSize(n: Int): Stream[doobie.ConnectionIO, B]
Stream
with given chunk factor, with effect typeConnectionIO
yielding elements of typeB
. - abstract def to[F[_]](implicit f: FactoryCompat[B, F[B]]): doobie.ConnectionIO[F[B]]
Program in
ConnectionIO
yielding anF[B]
accumulated via the providedCanBuildFrom
.Program in
ConnectionIO
yielding anF[B]
accumulated via the providedCanBuildFrom
. This is the fastest way to accumulate a collection. - abstract def unique: doobie.ConnectionIO[B]
Program in
ConnectionIO
yielding a uniqueB
and raising an exception if the resultset does not have exactly one row.Program in
ConnectionIO
yielding a uniqueB
and raising an exception if the resultset does not have exactly one row. See alsooption
.
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- 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()
- def stream: Stream[doobie.ConnectionIO, B]
Stream
with default chunk factor, with effect typeConnectionIO
yielding elements of typeB
. - final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- 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
- @native() @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- 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