Transaction

zio.rocksdb.Transaction
See theTransaction companion object
trait Transaction

Attributes

Companion
object
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

def commit: Task[Unit]

Commits all the changes using this transaction.

Commits all the changes using this transaction.

Attributes

def delete(key: Array[Byte]): Task[Unit]

Deletes a key using this transaction.

Deletes a key using this transaction.

Attributes

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

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

Retrieve a key using this transaction.

Retrieve a key using this transaction.

Attributes

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

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

def put(key: Array[Byte], value: Array[Byte]): Task[Unit]

Writes a key using this transaction.

Writes a key using this transaction.

Attributes

def put(cf: ColumnFamilyHandle, key: Array[Byte], value: Array[Byte]): Task[Unit]
def rollback: Task[Unit]

Rollbacks all the changes made through this transaction.

Rollbacks all the changes made through this transaction.

Attributes

Concrete methods

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

Retrieve a key using this transaction.

Retrieve a key using this transaction.

Attributes

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

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