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
- Grouped
- Alphabetic
- By Inheritance
- Query
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
val
logHandler: doobie.LogHandler
- Attributes
- protected
-
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. -
implicit abstract
val
read: Read[B]
- Attributes
- protected
-
abstract
def
sql: String
The SQL string.
-
implicit abstract
val
write: Write[A]
- Attributes
- protected
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
-
def
accumulate[F[_]](a: A)(implicit arg0: Alternative[F]): doobie.ConnectionIO[F[B]]
Apply the argument
a
to construct a program inConnectionIO
yielding anF[B]
accumulated viaMonadPlus
append.Apply the argument
a
to construct a program inConnectionIO
yielding anF[B]
accumulated viaMonadPlus
append. This method is more general but less efficient thanto
. -
def
analysis: doobie.ConnectionIO[Analysis]
Program to construct an analysis of this query's SQL statement and asserted parameter and column types.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def contramap[C](f: (C) ⇒ A): Query[C, B]
-
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
- def map[C](f: (B) ⇒ C): Query[A, C]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nel(a: A): doobie.ConnectionIO[NonEmptyList[B]]
Apply the argument
a
to construct a program inConnectionIO
yielding anNonEmptyList[B]
and raising an exception if the resultset does not have at least one row.Apply the argument
a
to construct a program inConnectionIO
yielding anNonEmptyList[B]
and raising an exception if the resultset does not have at least one row. See alsounique
. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
option(a: A): doobie.ConnectionIO[Option[B]]
Apply the argument
a
to construct a program inConnectionIO
yielding an optionalB
and raising an exception if the resultset has more than one row.Apply the argument
a
to construct a program inConnectionIO
yielding an optionalB
and raising an exception if the resultset has more than one row. See alsounique
. -
def
outputAnalysis: doobie.ConnectionIO[Analysis]
Program to construct an analysis of this query's SQL statement and result set column types.
-
def
stream(a: A): Stream[doobie.ConnectionIO, B]
Apply the argument
a
to construct aStream
withDefaultChunkSize
, with effect typeConnectionIO
yielding elements of typeB
. -
def
streamWithChunkSize(a: A, chunkSize: Int): Stream[doobie.ConnectionIO, B]
Apply the argument
a
to construct aStream
with the given chunking factor, with effect typeConnectionIO
yielding elements of typeB
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
to[F[_]](a: A)(implicit f: FactoryCompat[B, F[B]]): doobie.ConnectionIO[F[B]]
Apply the argument
a
to construct a program inConnectionIO
yielding anF[B]
accumulated via the providedCanBuildFrom
.Apply the argument
a
to construct a program inConnectionIO
yielding anF[B]
accumulated via the providedCanBuildFrom
. This is the fastest way to accumulate a collection. -
def
toQuery0(a: A): Query0[B]
Apply an argument, yielding a residual
Query0
.Apply an argument, yielding a residual
Query0
.- Annotations
- @SuppressWarnings()
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unique(a: A): doobie.ConnectionIO[B]
Apply the argument
a
to construct a program inConnectionIO
yielding a uniqueB
and raising an exception if the resultset does not have exactly one row.Apply the argument
a
to construct a program inConnectionIO
yielding a uniqueB
and raising an exception if the resultset does not have exactly one row. See alsooption
. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )