← ZIO Rocksdb docs

Transaction

zio.rocksdb.Transaction
See theTransaction companion object
trait Transaction

Attributes

Companion
object
Source
Transaction.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close: UIO[Unit]

Closes the transaction.

Closes the transaction.

Attributes

Source
Transaction.scala
def commit: Task[Unit]

Commits all the changes using this transaction.

Commits all the changes using this transaction.

Attributes

Source
Transaction.scala
def delete(key: Array[Byte]): Task[Unit]

Deletes a key using this transaction.

Deletes a key using this transaction.

Attributes

Source
Transaction.scala
def delete(cfHandle: ColumnFamilyHandle, key: Array[Byte]): Task[Unit]

Deletes a key using this transaction from a given column family

Deletes a key using this transaction from a given column family

Attributes

Source
Transaction.scala
def get(readOptions: ReadOptions, key: Array[Byte]): Task[Option[Array[Byte]]]

Retrieve a key using this transaction.

Retrieve a key using this transaction.

Attributes

Source
Transaction.scala
def getForUpdate(readOptions: ReadOptions, key: Array[Byte], exclusive: Boolean): Task[Option[Array[Byte]]]

Retrieve a key that will be updated using this transaction.

Retrieve a key that will be updated using this transaction.

Attributes

Source
Transaction.scala
def getForUpdate(readOptions: ReadOptions, cf: ColumnFamilyHandle, key: Array[Byte], exclusive: Boolean): Task[Option[Array[Byte]]]

Retrieve a key that will be updated using this transaction.

Retrieve a key that will be updated using this transaction.

Attributes

Source
Transaction.scala
def put(key: Array[Byte], value: Array[Byte]): Task[Unit]

Writes a key using this transaction.

Writes a key using this transaction.

Attributes

Source
Transaction.scala
def put(cf: ColumnFamilyHandle, key: Array[Byte], value: Array[Byte]): Task[Unit]

Attributes

Source
Transaction.scala

Rollbacks all the changes made through this transaction.

Rollbacks all the changes made through this transaction.

Attributes

Source
Transaction.scala

Concrete methods

def get(key: Array[Byte]): Task[Option[Array[Byte]]]

Retrieve a key using this transaction.

Retrieve a key using this transaction.

Attributes

Source
Transaction.scala
def getForUpdate(key: Array[Byte], exclusive: Boolean): Task[Option[Array[Byte]]]

Retrieve a key that will be updated using this transaction.

Retrieve a key that will be updated using this transaction.

Attributes

Source
Transaction.scala
def getForUpdate(cf: ColumnFamilyHandle, key: Array[Byte], exclusive: Boolean): Task[Option[Array[Byte]]]

Retrieve a key that will be updated using this transaction.

Retrieve a key that will be updated using this transaction.

Attributes

Source
Transaction.scala