6 configuration options · available in Rust, Python, Node.js, Java
use opendal::Operator;
let op = Operator::via_iter("mongodb", [
])?;
use opendal::Operator;
let op = Operator::via_iter("mongodb", [
// connection string of this backend
// ("connection_string".to_string(), "...".to_string()),
// database of this backend
// ("database".to_string(), "...".to_string()),
// collection of this backend
// ("collection".to_string(), "...".to_string()),
// root of this backend
// ("root".to_string(), "...".to_string()),
// key field of this backend
// ("key_field".to_string(), "...".to_string()),
// value field of this backend
// ("value_field".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 |
|---|---|---|---|
connection_string | string | no | connection string of this backend |
database | string | no | database of this backend |
collection | string | no | collection of this backend |
root | string | no | root of this backend |
key_field | string | no | key field of this backend |
value_field | string | no | value field of this backend |