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
- Protected
Abstract Value Members
- abstract def accumulate[F[_]](implicit arg0: Alternative[F]): free.connection.ConnectionIO[F[B]]
Program in ConnectionIO yielding an
F[B]
accumulated viaMonadPlus
append.Program in ConnectionIO yielding an
F[B]
accumulated viaMonadPlus
append. This method is more general but less efficient thanto
. - abstract def analysis: free.connection.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, free.preparedstatement.PreparedStatementIO[Unit]) => free.connection.ConnectionIO[R]): free.connection.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: free.connection.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 alsounique
. - abstract def option: free.connection.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 alsounique
. - abstract def outputAnalysis: free.connection.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[free.connection.ConnectionIO, B]
Stream
with given chunk factor, with effect type ConnectionIO yielding elements of typeB
. - abstract def to[F[_]](implicit f: Factory[B, F[B]]): free.connection.ConnectionIO[F[B]]
Program in ConnectionIO yielding an
F[B]
accumulated via the providedCanBuildFrom
.Program in ConnectionIO yielding an
F[B]
accumulated via the providedCanBuildFrom
. This is the fastest way to accumulate a collection. - abstract def toFragment: fragment.Fragment
Convert this Query0 to a
Fragment
. - abstract def toMap[K, V](implicit ev: =:=[B, (K, V)], f: Factory[(K, V), Map[K, V]]): free.connection.ConnectionIO[Map[K, V]]
Apply the argument
a
to construct a program in ConnectionIO yielding anMap[(K, V)]
accumulated via the providedCanBuildFrom
.Apply the argument
a
to construct a program in ConnectionIO 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: free.connection.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 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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- 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[free.connection.ConnectionIO, B]
Stream
with default chunk factor, with effect type ConnectionIO 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated