| ## Capabilities |
| |
| This service can be used to: |
| |
| - [ ] create_dir |
| - [x] stat |
| - [x] read |
| - [x] write |
| - [x] delete |
| - [ ] list |
| - [ ] copy |
| - [ ] rename |
| - [ ] ~~presign~~ |
| |
| ## Configuration |
| |
| - `datafile`: Set the path to the persy data file. The directory in the path must already exist. |
| - `segment`: Set the name of the persy segment. |
| - `index`: Set the name of the persy index. |
| |
| You can refer to [`PersyBuilder`]'s docs for more information |
| |
| ## Example |
| |
| ### Via Builder |
| |
| ```rust,no_run |
| use opendal_core::Operator; |
| use opendal_core::Result; |
| use opendal_service_persy::Persy; |
| |
| #[tokio::main] |
| async fn main() -> Result<()> { |
| let mut builder = Persy::default() |
| .datafile("./test.persy") |
| .segment("data") |
| .index("index"); |
| |
| let op: Operator = Operator::new(builder)?.finish(); |
| Ok(()) |
| } |
| ``` |