class RocksDB::TransactionDatabase
- RocksDB::TransactionDatabase
- Reference
- Object
Defined in:
rocksdb/transaction_db.crConstructors
- .new(value : Pointer(LibRocksDB::TransactionDb), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle)
- .open(path : String, options : Options, txn_options : TransactionDatabaseOptions = TransactionDatabaseOptions.new) : TransactionDatabase
Class Method Summary
Instance Method Summary
- #begin_transaction(write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options)
- #begin_transaction(old : Transaction, write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options)
- #close
- #closed?
- #create_column_family(name : String, options : Options)
- #delete(key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
- #delete(column_family : ColumnFamilyHandle, key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
- #drop_column_family(name : String) : Nil
- #family_handle(name : String)
- #family_handle?(name : String)
- #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
- #iterator(read_options : ReadOptions = @default_read_options)
- #iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
- #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
- #snapshot
- #to_unsafe : Pointer(LibRocksDB::TransactionDb)
- #write(batch : WriteBatch, write_options : WriteOptions = @default_write_options) : Nil
Constructor Detail
def self.new(value : Pointer(LibRocksDB::TransactionDb), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle)
#
def self.open(path : String, options : Options, txn_options : TransactionDatabaseOptions = TransactionDatabaseOptions.new) : TransactionDatabase
#
Class Method Detail
def self.open(path : String, options : Options, families : Hash(String, Options), txn_options : TransactionDatabaseOptions = TransactionDatabaseOptions.new)
#
Instance Method Detail
def begin_transaction(write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options)
#
def begin_transaction(old : Transaction, write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options)
#
def delete(key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
#
def delete(column_family : ColumnFamilyHandle, key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
#
def get(key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
#
def get(column_family : ColumnFamilyHandle, key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
#
def iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
#
def put(key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil
#
def put(column_family : ColumnFamilyHandle, key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil
#