DbConnection

zio.blocks.sql.DbConnection
trait DbConnection extends AutoCloseable

Attributes

Source
DbConnection.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close(): Unit

Attributes

Source
DbConnection.scala
def commit(): Unit

Attributes

Source
DbConnection.scala
def getAutoCommit: Boolean

Attributes

Source
DbConnection.scala
def isClosed: Boolean

Attributes

Source
DbConnection.scala

Attributes

Source
DbConnection.scala
def rollback(): Unit

Attributes

Source
DbConnection.scala
def setAutoCommit(autoCommit: Boolean): Unit

Attributes

Source
DbConnection.scala

Concrete methods

def release(name: String): Unit

Release a savepoint via RELEASE SAVEPOINT.

Release a savepoint via RELEASE SAVEPOINT.

Called on the success path of a nested transact to avoid leaking savepoints. Default implementation throws UnsupportedOperationException; JDBC implementations override.

Attributes

Source
DbConnection.scala
def rollbackTo(name: String): Unit

Roll back to a savepoint via ROLLBACK TO SAVEPOINT.

Roll back to a savepoint via ROLLBACK TO SAVEPOINT.

Called on the failure path of a nested transact to isolate the inner failure without rolling back the outer transaction. Default implementation throws UnsupportedOperationException; JDBC implementations override.

Attributes

Source
DbConnection.scala
def savepoint(name: String): Unit

Create a savepoint with the given name via SAVEPOINT.

Create a savepoint with the given name via SAVEPOINT.

Used by DbTx nested transactions. Names are zib_tx_1..N. Default implementation throws UnsupportedOperationException; JDBC implementations (e.g. JdbcConnection) override to execute SQL.

Attributes

Source
DbConnection.scala