This service can be used to:
root: Set the working directory of OpenDALconnection_string: Set the connection string of sqlite databasetable: Set the table of sqlitekey_field: Set the key field of sqlitevalue_field: Set the value field of sqliteuse opendal_core::Operator; use opendal_core::Result; use opendal_service_sqlite::Sqlite; #[tokio::main] async fn main() -> Result<()> { let mut builder = Sqlite::default() .root("/") .connection_string("file//abc.db") .table("your_table") // key field type in the table should be compatible with Rust's &str like text .key_field("key") // value field type in the table should be compatible with Rust's Vec<u8> like bytea .value_field("value"); let op = Operator::new(builder)?.finish(); Ok(()) }