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.
- Alphabetic
- By Inheritance
- ZConnection
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ZConnection(underlying: Restorable)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def access[A](f: (Connection) => A): ZIO[Any, Throwable, A]
- def accessZIO[A](f: (Connection) => ZIO[Scope, Throwable, A]): ZIO[Scope, Throwable, A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def close: Task[Any]
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- def rollback: Task[Any]
- def toString(): String
- Definition Classes
- Any