class RocksDB::Database

Direct Known Subclasses

Defined in:

rocksdb/db.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.list_column_families(path : String, options : Options) #

[View source]
def self.open(path : String, options : Options, families : Hash(String, Options)) #

[View source]
def self.open(path : String, options : Options) #

[View source]

Instance Method Detail

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 delete_range(key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil #

[View source]
def delete_range(column_family : ColumnFamilyHandle, key_start : Bytes, key_end : 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 ingest_external_file(column_family : ColumnFamilyHandle, paths : Array(String), options : IngestExternalFileOptions) #

[View source]
def ingest_external_file(paths : Array(String), options : IngestExternalFileOptions) #

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

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

[View source]
def property_int(column_family : ColumnFamilyHandle, name : String) : UInt64 | Nil #

[View source]
def property_int(name : String) : UInt64 | Nil #

[View source]
def property_value(column_family : ColumnFamilyHandle, name : String) : String | Nil #

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

[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::Db) #

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

[View source]