class

RocksDB::Database

Inherits Reference < Object

Constructors

new(value : Pointer(LibRocksDB::Db), families : Hash(String, RocksDB::ColumnFamilyHandle) = {} of String => ColumnFamilyHandle)
Source

Class methods

list_column_families(path : String, options : Options)
Source
open(path : String, options : Options, families : Hash(String, Options))
Source
open(path : String, options : Options)
Source

Instance methods

close
Source
closed?
Source
create_column_family(name : String, options : Options)
Source
delete(key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
delete(column_family : ColumnFamilyHandle, key : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
delete_range(key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
delete_range(column_family : ColumnFamilyHandle, key_start : Bytes, key_end : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
drop_column_family(name : String) : Nil
Source
family_handle(name : String)
Source
family_handle?(name : String)
Source
finalize
Source
get(key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
Source
get(column_family : ColumnFamilyHandle, key : Bytes, read_options : ReadOptions = @default_read_options) : Bytes | Nil
Source
ingest_external_file(column_family : ColumnFamilyHandle, paths : Array(String), options : IngestExternalFileOptions)
Source
ingest_external_file(paths : Array(String), options : IngestExternalFileOptions)
Source
iterator(column_family : ColumnFamilyHandle, read_options : ReadOptions = @default_read_options)
Source
iterator(read_options : ReadOptions = @default_read_options)
Source
property_int(column_family : ColumnFamilyHandle, name : String) : UInt64 | Nil
Source
property_int(name : String) : UInt64 | Nil
Source
property_value(column_family : ColumnFamilyHandle, name : String) : String | Nil
Source
property_value(name : String) : String | Nil
Source
put(key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
put(column_family : ColumnFamilyHandle, key : Bytes, value : Bytes, write_options : WriteOptions = @default_write_options) : Nil
Source
snapshot
Source
to_unsafe
Source
write(batch : WriteBatch, write_options : WriteOptions = @default_write_options) : Nil
Source

Nested types