facebook / facebook/rocksdb

There should be an "OpenOptions" argument to DB::Open for "open time" parameters

Open
#8,660 3 comments 0 reactions 1 assignee Claimed by @mrambacher View on GitHub
enhancement
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

There should be a separate "OpenOptions" to the DB::Open API that can be used to control how the database is opened. Examples of values in the OpenOptions could include:
- Open the DB for ReadOnly or not
- Open the DB as a Secondary

Some existing parameters (that make no sense in an Options file) could also be moved into the OpenOptions:
- create_if_missing
- error_if_exists
- create_missing_column_families

The OpenOptions could also be used to help/advise when opening a Checkpoint (or a different database copy) on whether to override file paths to a different location.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.