final class ZConnection extends AnyVal

A ZConnection is a straightforward wrapper around java.sql.Connection. In order to avoid needless duplication of code, one can safely access the underlying JDBC Connection through the access method. Any such access will be attempted on the blocking thread pool.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZConnection
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ZConnection(underlying: Restorable)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. def access[A](f: (Connection) => A): ZIO[Any, Throwable, A]
  5. def accessZIO[A](f: (Connection) => ZIO[Scope, Throwable, A]): ZIO[Scope, Throwable, A]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def close: Task[Any]
  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def isValid(timeout: Int): Task[Boolean]

    Returns whether the connection is still alive or not, providing a timeout, using the isValid(timeout) method on the java.sql.Connection interface

    Returns whether the connection is still alive or not, providing a timeout, using the isValid(timeout) method on the java.sql.Connection interface

    see: https://www.baeldung.com/jdbc-connection-status

    returns

    true if the connection is alive (valid), false otherwise

  11. def isValid(): Task[Boolean]

    Return whether the connection is still alive or not, trying to prepare a statement and managing the exception SQLException if the connection can not do it.

    Return whether the connection is still alive or not, trying to prepare a statement and managing the exception SQLException if the connection can not do it.

    see: https://www.baeldung.com/jdbc-connection-status

    returns

    true if the connection is alive (valid), false otherwise

  12. def rollback: Task[Any]
  13. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped