2 configuration options · available in Rust, Python, Node.js
use opendal::Operator;
let op = Operator::via_iter("rocksdb", [
])?;
use opendal::Operator;
let op = Operator::via_iter("rocksdb", [
// The path to the rocksdb data directory.
// ("datadir".to_string(), "...".to_string()),
// the working directory of the service. Can be "/path/to/dir"
//
// default is "/"
// ("root".to_string(), "...".to_string()),
])?;
Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
datadir | string | no | The path to the rocksdb data directory. |
root | string | no | the working directory of the service. Can be "/path/to/dir" default is "/" |