class RocksDB::TransactionDatabase

Defined in:

rocksdb/transaction_db.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(value : Pointer(LibRocksDB::TransactionDb), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle) #

[View source]
def self.open(path : String, options : Options, txn_options : TransactionDatabaseOptions = TransactionDatabaseOptions.new) : TransactionDatabase #

[View source]

Class Method Detail

def self.open(path : String, options : Options, families : Hash(String, Options), txn_options : TransactionDatabaseOptions = TransactionDatabaseOptions.new) #

[View source]

Instance Method Detail

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

[View source]
def begin_transaction(old : Transaction, write_options : WriteOptions = @default_write_options, transaction_options : TransactionOptions = @default_transaction_options) #

[View source]
def close #

[View source]
def closed? #

[View source]
def create_column_family(name : String, options : Options) #

[View source]
def delete(key : Bytes, write_options : WriteOptions = @default_write_options) : Nil #

[View source]
def delete(column_family : ColumnFamilyHandle, key : Bytes, write_options : WriteOptions = @default_write_options) : Nil #

[View source]
def drop_column_family(name : String) : Nil #

[View source]
def family_handle(name : String) #

[View source]
def family_handle?(name : String) #

[View source]
def finalize #

[View source]
def get(key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil #

[View source]
def get(column_family : ColumnFamilyHandle, key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil #

[View source]
def iterator(read_options : ReadOptions = @default_read_options) #

[View source]
def iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options) #

[View source]
def put(key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil #

[View source]
def put(column_family : ColumnFamilyHandle, key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil #

[View source]
def snapshot #

[View source]
def to_unsafe : Pointer(LibRocksDB::TransactionDb) #

[View source]
def write(batch : WriteBatch, write_options : WriteOptions = @default_write_options) : Nil #

[View source]