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

connection

object connection

Module of high-level constructors for ConnectionIO actions.

Source
connection.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. connection
  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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. val commit: hi.ConnectionIO[Unit]

  7. def createStatement[A](rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: hi.StatementIO[A]): hi.ConnectionIO[A]

  8. def createStatement[A](rst: ResultSetType, rsc: ResultSetConcurrency)(k: hi.StatementIO[A]): hi.ConnectionIO[A]

  9. def createStatement[A](k: hi.StatementIO[A]): hi.ConnectionIO[A]

  10. def delay[A](a: ⇒ A): hi.ConnectionIO[A]

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. val getCatalog: hi.ConnectionIO[String]

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getClientInfo(key: String): hi.ConnectionIO[Option[String]]

  16. val getClientInfo: hi.ConnectionIO[Map[String, String]]

  17. val getHoldability: hi.ConnectionIO[Holdability]

  18. def getMetaData[A](k: hi.DatabaseMetaDataIO[A]): hi.ConnectionIO[A]

  19. val getTransactionIsolation: hi.ConnectionIO[TransactionIsolation]

  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val isReadOnly: hi.ConnectionIO[Boolean]

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def prepareCall[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: hi.CallableStatementIO[A]): hi.ConnectionIO[A]

  27. def prepareCall[A](sql: String)(k: hi.CallableStatementIO[A]): hi.ConnectionIO[A]

  28. def prepareCall[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency)(k: hi.CallableStatementIO[A]): hi.ConnectionIO[A]

  29. def prepareQueryAnalysis[A, B](sql: String)(implicit arg0: util.Write[A], arg1: util.Read[B]): hi.ConnectionIO[Analysis]

    Construct an analysis for the provided sql query, given writable parameter type A and readable resultset row type B.

  30. def prepareQueryAnalysis0[B](sql: String)(implicit arg0: util.Read[B]): hi.ConnectionIO[Analysis]
  31. def prepareStatement[A](sql: String, agk: AutoGeneratedKeys)(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  32. def prepareStatement[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency, rsh: Holdability)(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  33. def prepareStatement[A](sql: String)(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  34. def prepareStatement[A](sql: String, rst: ResultSetType, rsc: ResultSetConcurrency)(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  35. def prepareStatementI[A](sql: String, columnIndexes: List[Int])(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  36. def prepareStatementS[A](sql: String, columnNames: List[String])(k: hi.PreparedStatementIO[A]): hi.ConnectionIO[A]

  37. def prepareUpdateAnalysis[A](sql: String)(implicit arg0: util.Write[A]): hi.ConnectionIO[Analysis]
  38. def prepareUpdateAnalysis0(sql: String): hi.ConnectionIO[Analysis]
  39. def releaseSavepoint(sp: Savepoint): hi.ConnectionIO[Unit]

  40. def rollback(sp: Savepoint): hi.ConnectionIO[Unit]

  41. val rollback: hi.ConnectionIO[Unit]

  42. def setCatalog(catalog: String): hi.ConnectionIO[Unit]

  43. def setClientInfo(info: Map[String, String]): hi.ConnectionIO[Unit]

  44. def setClientInfo(key: String, value: String): hi.ConnectionIO[Unit]

  45. def setHoldability(h: Holdability): hi.ConnectionIO[Unit]

  46. def setReadOnly(readOnly: Boolean): hi.ConnectionIO[Unit]

  47. def setSavepoint(name: String): hi.ConnectionIO[Savepoint]

  48. val setSavepoint: hi.ConnectionIO[Savepoint]

  49. def setTransactionIsolation(ti: TransactionIsolation): hi.ConnectionIO[Unit]

  50. def stream[A](sql: String, prep: hi.PreparedStatementIO[Unit], chunkSize: Int)(implicit arg0: util.Read[A]): Stream[hi.ConnectionIO, A]

    Construct a prepared statement from the given sql, configure it with the given PreparedStatementIO action, and return results via a Stream.

  51. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def updateManyWithGeneratedKeys[F[_], A, B](cols: List[String])(sql: String, prep: hi.PreparedStatementIO[Unit], fa: F[A], chunkSize: Int)(implicit arg0: Foldable[F], arg1: util.Write[A], arg2: util.Read[B]): Stream[hi.ConnectionIO, B]

  54. def updateWithGeneratedKeys[A](cols: List[String])(sql: String, prep: hi.PreparedStatementIO[Unit], chunkSize: Int)(implicit arg0: util.Read[A]): Stream[hi.ConnectionIO, A]

    Construct a prepared update statement with the given return columns (and readable destination type A) and sql source, configure it with the given PreparedStatementIO action, and return the generated key results via a Stream.

  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Callable Statements

Connection Properties

Lifting

Prepared Statements

Statements

Transaction Control

Ungrouped