class RocksDB::DB

Included Modules

Defined in:

rocksdb/db.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module RocksDB::Commands

[](key) [], []=(key, value) []=, []?(key) []?, binary_each(&) binary_each, binary_keys(limit = Int32::MAX) binary_keys, delete(key : Bytes)
delete(key : String)
delete
, each(&) each, get(key : Bytes) : Bytes
get(key : String) : String
get
, get!(key : Bytes) : Bytes
get!(key : String) : String
get!
, get?(key : Bytes) : Bytes | Nil
get?(key : String) : String | Nil
get?
, keys(limit = Int32::MAX) keys, new_binary_iterator new_binary_iterator, new_iterator new_iterator, put(key : String, value : String)
put(key : Bytes, value : Bytes)
put(key : String, value)
put

Instance methods inherited from module RocksDB::Api

rocksdb_close(*args) rocksdb_close, rocksdb_create_iterator(*args) rocksdb_create_iterator, rocksdb_delete(*args) rocksdb_delete, rocksdb_get(*args) rocksdb_get, rocksdb_iter_destroy(*args) rocksdb_iter_destroy, rocksdb_iter_key(*args) rocksdb_iter_key, rocksdb_iter_next(*args) rocksdb_iter_next, rocksdb_iter_prev(*args) rocksdb_iter_prev, rocksdb_iter_seek(*args) rocksdb_iter_seek, rocksdb_iter_seek_to_first(*args) rocksdb_iter_seek_to_first, rocksdb_iter_seek_to_last(*args) rocksdb_iter_seek_to_last, rocksdb_iter_valid(*args) rocksdb_iter_valid, rocksdb_iter_value(*args) rocksdb_iter_value, rocksdb_open(*args) rocksdb_open, rocksdb_open_for_read_only(*args) rocksdb_open_for_read_only, rocksdb_options_create(*args) rocksdb_options_create, rocksdb_options_destroy(*args) rocksdb_options_destroy, rocksdb_put(*args) rocksdb_put, rocksdb_readoptions_create(*args) rocksdb_readoptions_create, rocksdb_readoptions_destroy(*args) rocksdb_readoptions_destroy, rocksdb_writeoptions_create(*args) rocksdb_writeoptions_create, rocksdb_writeoptions_destroy(*args) rocksdb_writeoptions_destroy

Instance methods inherited from module RocksDB::RawMemory(LibRocksDB::RocksdbT)

close close, closed? closed?, opened? opened?, raw : T raw

Constructor Detail

def self.new(path : String, options : Options | Nil = nil, read_options : ReadOptions | Nil = nil, write_options : WriteOptions | Nil = nil, readonly : Bool = false, error_if_log_file_exist : Bool = false) #

[View source]

Class Method Detail

def self.read(path : String, options : Options | Nil = nil, error_if_log_file_exist : Bool = false, read_options : ReadOptions | Nil = nil) #

[View source]

Instance Method Detail

def r_opts #

[View source]
def r_opts? : RocksDB::ReadOptions #

[View source]
def w_opts #

[View source]
def w_opts? : RocksDB::WriteOptions #

[View source]