9 configuration options · available in Rust, Python
use opendal::Operator;
let op = Operator::via_iter("surrealdb", [
])?;
use opendal::Operator;
let op = Operator::via_iter("surrealdb", [
// The connection string for surrealdb.
// ("connection_string".to_string(), "...".to_string()),
// The username for surrealdb.
// ("username".to_string(), "...".to_string()),
// The password for surrealdb.
// ("password".to_string(), "...".to_string()),
// The namespace for surrealdb.
// ("namespace".to_string(), "...".to_string()),
// The database for surrealdb.
// ("database".to_string(), "...".to_string()),
// The table for surrealdb.
// ("table".to_string(), "...".to_string()),
// The key field for surrealdb.
// ("key_field".to_string(), "...".to_string()),
// The value field for surrealdb.
// ("value_field".to_string(), "...".to_string()),
// The root for surrealdb.
// ("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 |
|---|---|---|---|
connection_string | string | no | The connection string for surrealdb. |
username | string | no | The username for surrealdb. |
password | string | no | The password for surrealdb. |
namespace | string | no | The namespace for surrealdb. |
database | string | no | The database for surrealdb. |
table | string | no | The table for surrealdb. |
key_field | string | no | The key field for surrealdb. |
value_field | string | no | The value field for surrealdb. |
root | string | no | The root for surrealdb. |