Module: RocksDB

Defined in:
lib/rocksdb/ruby/deprecated.rb,
lib/rocksdb.rb

Overview

Deprecated methods, kept for backward compatibility

Defined Under Namespace

Classes: DB, DBError, DatabaseClosed, Error, Iterator, IteratorClosed, ReadOnly, StatusError

Class Method Summary collapse

Class Method Details

.open(db_path, db_options = "") ⇒ Object



18
19
20
# File 'lib/rocksdb.rb', line 18

def open(db_path, db_options = "")
  ::RocksDB::DB.new(db_path, db_options, readonly: false)
end

.open_readonly(db_path, db_options = "") ⇒ Object



22
23
24
# File 'lib/rocksdb.rb', line 22

def open_readonly(db_path, db_options = "")
  ::RocksDB::DB.new(db_path, db_options, readonly: true)
end