Query0

doobie.util.query.Query0
See theQuery0 companion object
trait Query0[B]

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.

Attributes

Companion
object
Source
query.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Query0[B]

Members list

Grouped members

Results

def accumulate[F[_]](using evidence$2: Alternative[F]): ConnectionIO[F[B]]

Program in ConnectionIO yielding an F[B] accumulated via MonadPlus append. This method is more general but less efficient than to.

Program in ConnectionIO yielding an F[B] accumulated via MonadPlus append. This method is more general but less efficient than to.

Attributes

Source
query.scala
def nel: ConnectionIO[NonEmptyList[B]]

Program in ConnectionIO yielding a NonEmptyList[B] and raising an exception if the resultset does not have at least one row. See also unique.

Program in ConnectionIO yielding a NonEmptyList[B] and raising an exception if the resultset does not have at least one row. See also unique.

Attributes

Source
query.scala
def option: ConnectionIO[Option[B]]

Program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row. See also unique.

Program in ConnectionIO yielding an optional B and raising an exception if the resultset has more than one row. See also unique.

Attributes

Source
query.scala
def stream: Stream[ConnectionIO, B]

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

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

Attributes

Source
query.scala
def streamWithChunkSize(n: Int): Stream[ConnectionIO, B]

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

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

Attributes

Source
query.scala
def to[F[_]](implicit f: Factory[B, F[B]]): ConnectionIO[F[B]]

Program in ConnectionIO yielding an F[B] accumulated via the provided CanBuildFrom. This is the fastest way to accumulate a collection.

Program in ConnectionIO yielding an F[B] accumulated via the provided CanBuildFrom. This is the fastest way to accumulate a collection.

Attributes

Source
query.scala
def toMap[K, V](implicit ev: B =:= (K, V), f: Factory[(K, V), Map[K, V]]): ConnectionIO[Map[K, V]]

Apply the argument a to construct a program in ConnectionIO yielding an Map[(K, V)] accumulated via the provided CanBuildFrom. This is the fastest way to accumulate a collection. this function can call only when B is (K, V).

Apply the argument a to construct a program in ConnectionIO yielding an Map[(K, V)] accumulated via the provided CanBuildFrom. This is the fastest way to accumulate a collection. this function can call only when B is (K, V).

Attributes

Source
query.scala
def unique: ConnectionIO[B]

Program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row. See also option.

Program in ConnectionIO yielding a unique B and raising an exception if the resultset does not have exactly one row. See also option.

Attributes

Source
query.scala

Diagnostics

def analysis: ConnectionIO[Analysis]

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

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

Attributes

Source
query.scala
def inspect[R](f: (String, PreparedStatementIO[Unit]) => ConnectionIO[R]): ConnectionIO[R]

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 the ConnectionIO program constructed.

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 the ConnectionIO program constructed.

Attributes

Source
query.scala
def outputAnalysis: ConnectionIO[Analysis]

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

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

Attributes

Source
query.scala
def pos: Option[Pos]

An optional Pos indicating the source location where this Query was constructed. This is used only for diagnostic purposes.

An optional Pos indicating the source location where this Query was constructed. This is used only for diagnostic purposes.

Attributes

Source
query.scala
def sql: String

The SQL string.

The SQL string.

Attributes

Source
query.scala

Transformations

def map[C](f: B => C): Query0[C]

Attributes

Source
query.scala

Value members

Abstract methods

Convert this Query0 to a Fragment.

Convert this Query0 to a Fragment.

Attributes

Source
query.scala