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.
Attributes
- Companion:
- object
- Source:
- query.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Members list
Results
Apply the argument a
to construct a program in ConnectionIO
yielding an F[B]
accumulated via MonadPlus
append. This method is
more general but less efficient than to
.
Apply the argument a
to construct a 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
Apply the argument a
to construct a program in ConnectionIO
yielding an NonEmptyList[B]
and raising an exception if the resultset
does not have at least one row. See also unique
.
Apply the argument a
to construct a program in ConnectionIO
yielding an NonEmptyList[B]
and raising an exception if the resultset
does not have at least one row. See also unique
.
Attributes
- Source:
- query.scala
Apply the argument a
to construct a program in ConnectionIO
yielding an optional B
and raising an exception if the resultset has
more than one row. See also unique
.
Apply the argument a
to construct a 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
Apply the argument a
to construct a Stream
with DefaultChunkSize
,
with effect type ConnectionIO yielding elements of type B
.
Apply the argument a
to construct a Stream
with DefaultChunkSize
,
with effect type ConnectionIO yielding elements of type B
.
Attributes
- Source:
- query.scala
Apply the argument a
to construct a Stream
with the given chunking
factor, with effect type ConnectionIO yielding elements of type B
.
Apply the argument a
to construct a Stream
with the given chunking
factor, with effect type ConnectionIO yielding elements of type B
.
Attributes
- Source:
- query.scala
Apply the argument a
to construct a program in ConnectionIO
yielding an F[B]
. This is the fastest way to accumulate a collection.
Apply the argument a
to construct a program in ConnectionIO
yielding an F[B]
. This is the fastest way to accumulate a collection.
Attributes
- Source:
- query.scala
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
Apply the argument a
to construct a program in ConnectionIO
yielding a unique B
and raising an exception if the resultset does not
have exactly one row. See also option
.
Apply the argument a
to construct a 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
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
Program to construct an inspection of the query. Given arguments a
,
calls f
with the SQL representation of the query and a statement with
all arguments set. Returns the result of the ConnectionIO
program
constructed.
Program to construct an inspection of the query. Given arguments a
,
calls f
with the SQL representation of the query and a statement with
all arguments set. Returns the result of the ConnectionIO
program
constructed.
Attributes
- Source:
- query.scala
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
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
The SQL string.
Transformations
Attributes
- Source:
- query.scala
Attributes
- Source:
- query.scala
Apply an argument, yielding a residual Query0.
Value members
Concrete methods
Convert this Query to a Fragment.