class RocksDB::OptimisticTransaction
- RocksDB::OptimisticTransaction
- RocksDB::BaseTransaction
- Reference
- Object
Defined in:
rocksdb/optimistic_transaction_db.crConstructors
Instance Method Summary
- #begin(write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
- #finalize
Instance methods inherited from class RocksDB::BaseTransaction
commit
commit,
delete(column_family : ColumnFamilyHandle, key : Bytes) : Nildelete(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_optimistic_transaction_options : OptimisticTransactionOptions, optimistic_transaction_db : OptimisticTransactionDatabase)
#
Instance Method Detail
def begin(write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
#