trait PreparedQuery[F[_], A, B] extends AnyRef
A prepared query, valid for the life of its originating Session
.
- Source
- PreparedQuery.scala
- Alphabetic
- By Inheritance
- PreparedQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
cursor(args: A)(implicit or: Origin): Resource[F, Cursor[F, B]]
Resource
that binds the supplied arguments to thisPreparedQuery
, yielding aCursor
from which rows can befetch
ed.Resource
that binds the supplied arguments to thisPreparedQuery
, yielding aCursor
from which rows can befetch
ed. Note that higher-level operations likestream
,option
, andunique
are usually what you want. -
abstract
def
option(args: A)(implicit or: Origin): F[Option[B]]
Fetch and return at most one row, raising an exception if more rows are available.
-
abstract
def
stream(args: A, chunkSize: Int)(implicit or: Origin): Stream[F, B]
Construct a
Cursor
-backed stream that callsfetch
repeatedly and emits chunks until none remain.Construct a
Cursor
-backed stream that callsfetch
repeatedly and emits chunks until none remain. Note that each chunk is read atomically while holding the session mutex, which means interleaved streams will achieve better fairness with smaller chunks but greater overall throughput with larger chunks. So it's important to consider the use case when specifyingchunkSize
. -
abstract
def
unique(args: A)(implicit or: Origin): F[B]
Fetch and return exactly one row, raising an exception if there are more or fewer.
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()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @throws( ... ) @native()