This service can be used to:
root: Set the working directory of OpenDALconnection_string: Set the connection string of surrealdb serverusername: set the username of surrealdbpassword: set the password of surrealdbnamespace: set the namespace of surrealdbdatabase: set the database of surrealdbtable: Set the table of surrealdbkey_field: Set the key field of surrealdbvalue_field: Set the value field of surrealdbuse opendal_core::Operator; use opendal_core::Result; use opendal_service_surrealdb::Surrealdb; #[tokio::main] async fn main() -> Result<()> { let mut builder = Surrealdb::default() .root("/") .connection_string("ws://127.0.0.1:8000") .username("username") .password("password") .namespace("namespace") .database("database") .table("table") .key_field("key") .value_field("value"); let op = Operator::new(builder)?.finish(); Ok(()) }