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
inspect[R](f: (String, doobie.PreparedStatementIO[Unit]) ⇒ doobie.ConnectionIO[R]): doobie.ConnectionIO[R]
Program to construct an inspection of the query.
Program to construct an inspection of the query. Calls
f
with the SQL representation of the query and a statement with all statement arguments set. Returns the result of theConnectionIO
program constructed. - 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
toFragment: doobie.Fragment
Convert this Query0 to a
Fragment
. -
abstract
def
toMap[K, V](implicit ev: =:=[B, (K, V)], f: FactoryCompat[(K, V), Map[K, V]]): doobie.ConnectionIO[Map[K, V]]
Apply the argument
a
to construct a program inConnectionIO
yielding anMap[(K, V)]
accumulated via the providedCanBuildFrom
.Apply the argument
a
to construct a program inConnectionIO
yielding anMap[(K, V)]
accumulated via the providedCanBuildFrom
. This is the fastest way to accumulate a collection. this function can call only when B is (K, V). -
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated