surrealpatch/src/doc/erase.rs
Tobie Morgan Hitchcock efa67bb043 Only pass transaction when processing queries
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.
2022-02-15 01:05:39 +00:00

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
}
}