class RocksDB::Database
- RocksDB::Database
- Reference
- Object
Direct Known Subclasses
Defined in:
rocksdb/db.crConstructors
Class Method Summary
- .list_column_families(path : String, options : Options)
- .open(path : String, options : Options, families : Hash(String, Options))
- .open(path : String, options : Options)
Instance Method Summary
- #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
- #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
- #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
- #ingest_external_file(column_family : ColumnFamilyHandle, paths : Array(String), options : IngestExternalFileOptions)
- #ingest_external_file(paths : Array(String), options : IngestExternalFileOptions)
- #iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
- #iterator(read_options : ReadOptions = @default_read_options)
- #property_int(column_family : ColumnFamilyHandle, name : String) : UInt64 | Nil
- #property_int(name : String) : UInt64 | Nil
- #property_value(column_family : ColumnFamilyHandle, name : String) : String | Nil
- #property_value(name : String) : String | Nil
- #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::Db)
- #write(batch : WriteBatch, write_options : WriteOptions = @default_write_options) : Nil
Constructor Detail
def self.new(value : Pointer(LibRocksDB::Db), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle)
#
Class Method Detail
Instance Method Detail
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 delete_range(key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil
#
def delete_range(column_family : ColumnFamilyHandle, key_start : Bytes, key_end : 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 ingest_external_file(column_family : ColumnFamilyHandle, paths : Array(String), options : IngestExternalFileOptions)
#
def ingest_external_file(paths : Array(String), options : IngestExternalFileOptions)
#
def iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
#
def property_value(column_family : ColumnFamilyHandle, name : String) : String | Nil
#
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
#