class RocksDB::OptimisticTransactionDatabase
- RocksDB::OptimisticTransactionDatabase
- RocksDB::Database
- Reference
- Object
Defined in:
rocksdb/optimistic_transaction_db.crConstructors
Class Method Summary
- .open(path : String, options : Options, families : Hash(String, Options))
- .open(path : String, options : Options)
Instance Method Summary
- #begin_transaction(write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
- #begin_transaction(old : OptimisticTransaction, write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
- #close
Instance methods inherited from class RocksDB::Database
close
close,
closed?
closed?,
create_column_family(name : String, options : Options)
create_column_family,
delete(key : Bytes, write_options : WriteOptions = @default_write_options) : Nildelete(column_family : ColumnFamilyHandle, key : Bytes, write_options : WriteOptions = @default_write_options) : Nil delete, delete_range(key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil
delete_range(column_family : ColumnFamilyHandle, key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil delete_range, drop_column_family(name : String) : Nil drop_column_family, family_handle(name : String) family_handle, family_handle?(name : String) family_handle?, 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, ingest_external_file(column_family : ColumnFamilyHandle, paths : Array(String), options : IngestExternalFileOptions)
ingest_external_file(paths : Array(String), options : IngestExternalFileOptions) ingest_external_file, iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
iterator(read_options : ReadOptions = @default_read_options) iterator, property_int(column_family : ColumnFamilyHandle, name : String) : UInt64 | Nil
property_int(name : String) : UInt64 | Nil property_int, property_value(column_family : ColumnFamilyHandle, name : String) : String | Nil
property_value(name : String) : String | Nil property_value, put(key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil
put(column_family : ColumnFamilyHandle, key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil put, snapshot snapshot, to_unsafe : Pointer(LibRocksDB::Db) to_unsafe, write(batch : WriteBatch, write_options : WriteOptions = @default_write_options) : Nil write
Constructor methods inherited from class RocksDB::Database
new(value : Pointer(LibRocksDB::Db), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle)
new
Class methods inherited from class RocksDB::Database
list_column_families(path : String, options : Options)
list_column_families,
open(path : String, options : Options, families : Hash(String, Options))open(path : String, options : Options) open
Constructor Detail
def self.new(value, optimistic_transaction_db : Pointer(LibRocksDB::OptimisticTransactionDb), families = {} of String => ColumnFamilyHandle)
#
Class Method Detail
Instance Method Detail
def begin_transaction(write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
#
def begin_transaction(old : OptimisticTransaction, write_options : WriteOptions = @default_write_options, optimistic_transaction_options : OptimisticTransactionOptions = @default_optimistic_transaction_options)
#