class RocksDB::Transaction

Defined in:

rocksdb/transaction_db.cr

Constructors

Instance Method Summary

Instance methods inherited from class RocksDB::BaseTransaction

commit commit, delete(column_family : ColumnFamilyHandle, key : Bytes) : Nil
delete(key : Bytes) : Nil
delete
, finalize finalize, get(key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
get(column_family : ColumnFamilyHandle, key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
get
, get_for_update(key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
get_for_update(column_family : ColumnFamilyHandle, key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
get_for_update
, iterator(read_options : ReadOptions = @default_read_options)
iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
iterator
, put(column_family : ColumnFamilyHandle, key : Bytes, value : Bytes) : Nil
put(key : Bytes, value : Bytes) : Nil
put
, rollback rollback, rollback_to_savepoint rollback_to_savepoint, set_savepoint set_savepoint, to_unsafe : Pointer(LibRocksDB::Transaction) to_unsafe, write(batch : WriteBatch) write

Constructor methods inherited from class RocksDB::BaseTransaction

new(value : Pointer(LibRocksDB::Transaction), default_read_options : ReadOptions, default_write_options : WriteOptions) new

Constructor Detail

def self.new(value, default_read_options, default_write_options, default_transaction_options : TransactionOptions, transaction_db : TransactionDatabase) #

[View source]

Instance Method Detail

def begin(write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options) #

[View source]
def finalize #

[View source]