use std::sync::Arc;
use super::core::*;
use opendal_core::raw::oio;
use opendal_core::raw::*;
use opendal_core::*;
pub struct PostgresqlDeleter {
core: Arc<PostgresqlCore>,
root: String,
}
impl PostgresqlDeleter {
pub fn new(core: Arc<PostgresqlCore>, root: String) -> Self {
Self { core, root }
}
}
impl oio::OneShotDelete for PostgresqlDeleter {
async fn delete_once(&self, path: String, _: OpDelete) -> Result<()> {
let p = build_abs_path(&self.root, &path);
self.core.delete(&p).await?;
Ok(())
}
}