efa67bb043
Instead of passing the executor instance, we only need to pass the current transaction which is to be used for processing and running any queries.
18 lines
379 B
Rust
18 lines
379 B
Rust
use crate::dbs::Options;
|
|
use crate::dbs::Runtime;
|
|
use crate::dbs::Statement;
|
|
use crate::dbs::Transaction;
|
|
use crate::doc::Document;
|
|
use crate::err::Error;
|
|
|
|
impl<'a> Document<'a> {
|
|
pub async fn erase(
|
|
&mut self,
|
|
ctx: &Runtime,
|
|
opt: &Options,
|
|
txn: &Transaction<'_>,
|
|
_stm: &Statement<'_>,
|
|
) -> Result<(), Error> {
|
|
self.current.to_mut().clear(ctx, opt, txn).await
|
|
}
|
|
}
|