OpenDAL
Open Data Access Layer that connect the whole world together.
Status
OpenDAL is in alpha stage and has been early adopted by databend. Welcome any feedback at Discussions!
Quickstart
use opendal::Operator;
use opendal::services::fs;
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()>{
let mut op = Operator::new(fs::Backend::build().finish().await?);
let n = op.write("/path/to/file.txt", 1024).run(buf).await?;
let mut r = op.read("/path/to/file.txt").run().await?;
r.read_to_end(&mut buf).await?;
let o = op.stat("/path/to/file.txt").run().await?;
op.delete("/path/to/file.txt").run().await?;
}
License
OpenDAL is licensed under Apache 2.0.