Packages

  • package root
    Definition Classes
    root
  • package doobie

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core.

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core. A typical starting set of imports would be something like this.

    import cats.implicits._
    import doobie._, doobie.implicits._
    Definition Classes
    root
    See also

    The doobie microsite for much more information.

  • package hi

    High-level database API.

    High-level database API. The constructors here are defined in terms of those in doobie.free.connection but differ in the following ways:

    • Enumerated values represented by Int values in JDBC are mapped to one of the proper types defined in doobie.enum.
    • Nullable values are represented in terms of Option.
    • Java collection types are translated to immutable Scala equivalents.
    • Actions that compute lifetime-managed resources do not return the resource directly, but rather take a continuation in the resource's monad.
    • Actions that compute values of impure types (CLOB, InputStream, etc.) do not appear in this API. They are available in the low-level API but must be used with considerable caution.
    • Lifting actions, low-level type mapping actions, and resource management actions do not appear in this API.
    Definition Classes
    doobie
  • Modules
  • connection
  • implicits
  • preparedstatement
  • resultset
  • statement
o

doobie.hi

resultset

object resultset

Module of high-level constructors for ResultSetIO actions.

Annotations
@SuppressWarnings()
Source
resultset.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. resultset
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def absolute(row: Int): hi.ResultSetIO[Boolean]

  5. 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 a MonadPlus.

  6. val afterLast: hi.ResultSetIO[Unit]

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val beforeFirst: hi.ResultSetIO[Unit]

  9. 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 via CanBuildFrom.

    Consumes the remainder of the resultset, reading each row as a value of type A and accumulating them in a standard library collection via CanBuildFrom.

    Annotations
    @SuppressWarnings()
  10. 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 to B, and accumulating them in a standard library collection via CanBuildFrom.

    Consumes the remainder of the resultset, reading each row as a value of type A, mapping to B, and accumulating them in a standard library collection via CanBuildFrom. This unusual constructor is a workaround for the CanBuildFrom not having a sensible contravariant functor instance.

    Annotations
    @SuppressWarnings()
  11. val cancelRowUpdates: hi.ResultSetIO[Unit]

  12. val clearWarnings: hi.ResultSetIO[Unit]

  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def delay[A](a: ⇒ A): hi.ResultSetIO[A]

    Non-strict unit for capturing effects.

  15. val deleteRow: hi.ResultSetIO[Unit]

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. val first: hi.ResultSetIO[Boolean]

  20. def get[A](implicit arg0: util.Read[A]): hi.ResultSetIO[A]

    Read a value of type A starting at column 1.

  21. def get[A](n: Int)(implicit A: util.Read[A]): hi.ResultSetIO[A]

    Read a value of type A starting at column n.

  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. val getFetchDirection: hi.ResultSetIO[FetchDirection]

  24. val getFetchSize: hi.ResultSetIO[Int]

  25. val getHoldability: hi.ResultSetIO[Holdability]

  26. val getMetaData: hi.ResultSetIO[ResultSetMetaData]

  27. def getNext[A](implicit arg0: util.Read[A]): hi.ResultSetIO[Option[A]]

    Similar to next >> get but lifted into Option; returns None when no more rows are available.

  28. def getNextChunk[A](chunkSize: Int)(implicit arg0: util.Read[A]): hi.ResultSetIO[Seq[A]]

    Similar to getNext but reads chunkSize rows at a time (the final chunk in a resultset may be smaller).

    Similar to getNext but reads chunkSize rows at a time (the final chunk in a resultset may be smaller). A non-positive chunkSize yields an empty Seq and consumes no rows. This method delegates to getNextChunkV and widens to Seq for easier interoperability with streaming libraries that like Seq better.

  29. def getNextChunkV[A](chunkSize: Int)(implicit A: util.Read[A]): hi.ResultSetIO[Vector[A]]

    Similar to getNext but reads chunkSize rows at a time (the final chunk in a resultset may be smaller).

    Similar to getNext but reads chunkSize rows at a time (the final chunk in a resultset may be smaller). A non-positive chunkSize yields an empty Vector and consumes no rows.

    Annotations
    @SuppressWarnings()
  30. 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

  31. val getRow: hi.ResultSetIO[Int]

  32. 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

  33. val getWarnings: hi.ResultSetIO[Option[SQLWarning]]

  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. val insertRow: hi.ResultSetIO[Unit]

  36. val isAfterLast: hi.ResultSetIO[Boolean]

  37. val isBeforeFirst: hi.ResultSetIO[Boolean]

  38. val isFirst: hi.ResultSetIO[Boolean]

  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. val isLast: hi.ResultSetIO[Boolean]

  41. val last: hi.ResultSetIO[Boolean]

  42. 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 a List.

  43. val moveToCurrentRow: hi.ResultSetIO[Unit]

  44. val moveToInsertRow: hi.ResultSetIO[Unit]

  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. 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

  47. val next: hi.ResultSetIO[Boolean]

  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. val previous: hi.ResultSetIO[Boolean]

  51. val refreshRow: hi.ResultSetIO[Unit]

  52. def relative(n: Int): hi.ResultSetIO[Boolean]

  53. val rowDeleted: hi.ResultSetIO[Boolean]

  54. val rowInserted: hi.ResultSetIO[Boolean]

  55. val rowUpdated: hi.ResultSetIO[Boolean]

  56. def setFetchDirection(fd: FetchDirection): hi.ResultSetIO[Unit]

  57. def setFetchSize(n: Int): hi.ResultSetIO[Unit]

  58. def stream[A](chunkSize: Int)(implicit arg0: util.Read[A]): Stream[hi.ResultSetIO, A]

    Stream that reads from the ResultSet and returns a stream of As.

    Stream that reads from the ResultSet and returns a stream of As. This is the preferred mechanism for dealing with query results.

  59. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. def update[A](a: A)(implicit A: util.Write[A]): hi.ResultSetIO[Unit]

    Updates a value of type A starting at column 1.

  62. def update[A](n: Int, a: A)(implicit A: util.Write[A]): hi.ResultSetIO[Unit]

    Updates a value of type A starting at column n.

  63. 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 a Vector.

  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Constructors (Lifting)

Cursor Control

Properties

Results

Updating

Warnings

Ungrouped