object resultset
Module of high-level constructors for ResultSetIO
actions.
- Annotations
- @SuppressWarnings()
- Source
- resultset.scala
- Grouped
- Alphabetic
- By Inheritance
- resultset
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- def absolute(row: Int): hi.ResultSetIO[Boolean]
-
def
accumulate[G[_], A](implicit arg0: Alternative[G], arg1: util.Read[A]): hi.ResultSetIO[G[A]]
Like
getNext
but loops until the end of the resultset, gathering results in aMonadPlus
. - val afterLast: hi.ResultSetIO[Unit]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val beforeFirst: hi.ResultSetIO[Unit]
-
def
build[F[_], A](implicit F: FactoryCompat[A, F[A]], A: util.Read[A]): hi.ResultSetIO[F[A]]
Consumes the remainder of the resultset, reading each row as a value of type
A
and accumulating them in a standard library collection viaCanBuildFrom
.Consumes the remainder of the resultset, reading each row as a value of type
A
and accumulating them in a standard library collection viaCanBuildFrom
.- Annotations
- @SuppressWarnings()
-
def
buildMap[F[_], A, B](f: (A) ⇒ B)(implicit F: FactoryCompat[B, F[B]], A: util.Read[A]): hi.ResultSetIO[F[B]]
Consumes the remainder of the resultset, reading each row as a value of type
A
, mapping toB
, and accumulating them in a standard library collection viaCanBuildFrom
.Consumes the remainder of the resultset, reading each row as a value of type
A
, mapping toB
, and accumulating them in a standard library collection viaCanBuildFrom
. This unusual constructor is a workaround for the CanBuildFrom not having a sensible contravariant functor instance.- Annotations
- @SuppressWarnings()
- val cancelRowUpdates: hi.ResultSetIO[Unit]
- val clearWarnings: hi.ResultSetIO[Unit]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
delay[A](a: ⇒ A): hi.ResultSetIO[A]
Non-strict unit for capturing effects.
- val deleteRow: hi.ResultSetIO[Unit]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val first: hi.ResultSetIO[Boolean]
-
def
get[A](implicit arg0: util.Read[A]): hi.ResultSetIO[A]
Read a value of type
A
starting at column 1. -
def
get[A](n: Int)(implicit A: util.Read[A]): hi.ResultSetIO[A]
Read a value of type
A
starting at columnn
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val getFetchDirection: hi.ResultSetIO[FetchDirection]
- val getFetchSize: hi.ResultSetIO[Int]
- val getHoldability: hi.ResultSetIO[Holdability]
- val getMetaData: hi.ResultSetIO[ResultSetMetaData]
-
def
getNext[A](implicit arg0: util.Read[A]): hi.ResultSetIO[Option[A]]
Similar to
next >> get
but lifted intoOption
; returnsNone
when no more rows are available. -
def
getNextChunk[A](chunkSize: Int)(implicit arg0: util.Read[A]): hi.ResultSetIO[Seq[A]]
Similar to
getNext
but readschunkSize
rows at a time (the final chunk in a resultset may be smaller).Similar to
getNext
but readschunkSize
rows at a time (the final chunk in a resultset may be smaller). A non-positivechunkSize
yields an emptySeq
and consumes no rows. This method delegates togetNextChunkV
and widens toSeq
for easier interoperability with streaming libraries that likeSeq
better. -
def
getNextChunkV[A](chunkSize: Int)(implicit A: util.Read[A]): hi.ResultSetIO[Vector[A]]
Similar to
getNext
but readschunkSize
rows at a time (the final chunk in a resultset may be smaller).Similar to
getNext
but readschunkSize
rows at a time (the final chunk in a resultset may be smaller). A non-positivechunkSize
yields an emptyVector
and consumes no rows.- Annotations
- @SuppressWarnings()
-
def
getOption[A](implicit arg0: util.Read[A]): hi.ResultSetIO[Option[A]]
Equivalent to
getNext
, but verifies that there is at most one row remaining.Equivalent to
getNext
, but verifies that there is at most one row remaining.- Exceptions thrown
`UnexpectedContinuation`
if there is more than one row remaining
- val getRow: hi.ResultSetIO[Int]
-
def
getUnique[A](implicit arg0: util.Read[A]): hi.ResultSetIO[A]
Equivalent to
getNext
, but verifies that there is exactly one row remaining.Equivalent to
getNext
, but verifies that there is exactly one row remaining.- Exceptions thrown
`UnexpectedCursorPosition`
if there is not exactly one row remaining
- val getWarnings: hi.ResultSetIO[Option[SQLWarning]]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val insertRow: hi.ResultSetIO[Unit]
- val isAfterLast: hi.ResultSetIO[Boolean]
- val isBeforeFirst: hi.ResultSetIO[Boolean]
- val isFirst: hi.ResultSetIO[Boolean]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isLast: hi.ResultSetIO[Boolean]
- val last: hi.ResultSetIO[Boolean]
-
def
list[A](implicit arg0: util.Read[A]): hi.ResultSetIO[List[A]]
Consumes the remainder of the resultset, reading each row as a value of type
A
and accumulating them in aList
. - val moveToCurrentRow: hi.ResultSetIO[Unit]
- val moveToInsertRow: hi.ResultSetIO[Unit]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nel[A](implicit arg0: util.Read[A]): hi.ResultSetIO[NonEmptyList[A]]
Consumes the remainder of the resultset, but verifies that there is at least one row remaining.
Consumes the remainder of the resultset, but verifies that there is at least one row remaining.
- Exceptions thrown
`UnexpectedEnd`
if there is not at least one row remaining
- val next: hi.ResultSetIO[Boolean]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val previous: hi.ResultSetIO[Boolean]
- val refreshRow: hi.ResultSetIO[Unit]
- def relative(n: Int): hi.ResultSetIO[Boolean]
- val rowDeleted: hi.ResultSetIO[Boolean]
- val rowInserted: hi.ResultSetIO[Boolean]
- val rowUpdated: hi.ResultSetIO[Boolean]
- def setFetchDirection(fd: FetchDirection): hi.ResultSetIO[Unit]
- def setFetchSize(n: Int): hi.ResultSetIO[Unit]
-
def
stream[A](chunkSize: Int)(implicit arg0: util.Read[A]): Stream[hi.ResultSetIO, A]
Stream that reads from the
ResultSet
and returns a stream ofA
s.Stream that reads from the
ResultSet
and returns a stream ofA
s. This is the preferred mechanism for dealing with query results. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update[A](a: A)(implicit A: util.Write[A]): hi.ResultSetIO[Unit]
Updates a value of type
A
starting at column 1. -
def
update[A](n: Int, a: A)(implicit A: util.Write[A]): hi.ResultSetIO[Unit]
Updates a value of type
A
starting at columnn
. -
def
vector[A](implicit arg0: util.Read[A]): hi.ResultSetIO[Vector[A]]
Consumes the remainder of the resultset, reading each row as a value of type
A
and accumulating them in aVector
. -
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
- @native() @throws( ... )